81 afx_msg
int OnCreate(LPCREATESTRUCT lpCreateStruct);
87 afx_msg
void OnNMRclick(NMHDR *pNMHDR, LRESULT *pResult);
103 DECLARE_MESSAGE_MAP()
virtual void MV_OnMaterialAttributeChanged(MaterialDoc *pMaterial, int stage, const char *attribName)
Called when an attribute is changed.
virtual void MV_OnMaterialSelectionChange(MaterialDoc *pMaterial)
Called when the selected material has changed.
View that displays material and stage properties and allows the user to edit the properties.
afx_msg void OnPaste()
Performs a paste operation when the user selects the menu option.
CONST PIXELFORMATDESCRIPTOR UINT
virtual void MV_OnMaterialStageDelete(MaterialDoc *pMaterial, int stageNum)
Called when a stage is deleted.
afx_msg void OnAddDiffuseStage()
Adds a new diffusemap stage when the user selects the menu option.
void PopupMenu(CPoint *pt)
Dispalys the popup menu with the appropriate menu items enabled.
afx_msg void OnLvnItemchanged(NMHDR *pNMHDR, LRESULT *pResult)
Called when the user changes the selection in the list box.
bool CanDelete()
Returns true if the current state of the stage view will allow a delete operation.
void DropItemOnList()
Performs the stage move when the user has dragged and dropped a stage.
afx_msg void OnLvnDeleteallitems(NMHDR *pNMHDR, LRESULT *pResult)
Notifies the property view that all stages have been removed.
afx_msg void OnAddStage()
Adds a new stage when the user selects the menu option.
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct)
Called by the MFC framework when the view is being created.
afx_msg void OnCopy()
Performs a copy operation when the user selects the menu option.
MaterialPropTreeView * m_propView
virtual ~StageView()
Destructor for StageView.
Responsible for managing a single material that is being viewed and/or edited.
afx_msg void OnAddBumpmapStage()
Adds a new bumpmap stage when the user selects the menu option.
afx_msg void OnNMRclick(NMHDR *pNMHDR, LRESULT *pResult)
Displays the popup menu when the user performs a right mouse click.
virtual void MV_OnMaterialSaved(MaterialDoc *pMaterial)
Called when the material changes have been saved.
View that handles managing the material stages.
afx_msg void OnLvnBeginlabeledit(NMHDR *pNMHDR, LRESULT *pResult)
Determines is a label edit can be performed on the selected stage.
afx_msg void OnLButtonUp(UINT nFlags, CPoint point)
Finishes a stage drag operation of the user was dragging a stage.
afx_msg void OnChar(UINT nChar, UINT nRepCnt, UINT nFlags)
Handles keyboard shortcuts for copy and paste operations.
afx_msg void OnLvnEndlabeledit(NMHDR *pNMHDR, LRESULT *pResult)
Performs the stage name change after the label edit is done.
afx_msg void OnLvnBegindrag(NMHDR *pNMHDR, LRESULT *pResult)
Starts the stage drag operation.
virtual void MV_OnMaterialStageMove(MaterialDoc *pMaterial, int from, int to)
Called when a stage is moved.
afx_msg void OnMouseMove(UINT nFlags, CPoint point)
Handles drawing the drag image when a user is draging a stage.
void RefreshStageList()
Rebuilds the list of stages based on the currently selected material.
StageView()
Constructor for StageView.
afx_msg void OnDeleteStage()
Deletes the selected stage when the user selects the delete menu option.
virtual void MV_OnMaterialStageAdd(MaterialDoc *pMaterial, int stageNum)
Called when a stage is added.
virtual void OnStateChanged(int index, int toggleState)
Called by the ToggleListView when the toggle state has changed.
afx_msg void OnRenameStage()
Begins a label edit when the user selects the rename menu option.
afx_msg void OnAddSpecualarStage()
Adds a new specularmap stage when the user selects the menu option.
void SetMaterialPropertyView(MaterialPropTreeView *propView)
virtual BOOL PreTranslateMessage(MSG *pMsg)
Handles keyboard shortcut for the delete operations.
afx_msg void OnDeleteAllStages()
Conforms the user wants to delete all stages and then performs the operation.
A simple list view that supports a toggle button.
bool CanRename()
Returns true if the current state of the stage view will allow a rename operation.
MaterialDoc * currentMaterial
virtual BOOL PreCreateWindow(CREATESTRUCT &cs)
Sets window styles before the window is created.
bool CanCopy()
Returns true if the current state of the stage view will allow a copy operation.
bool CanCut()
Cut is not supported for stages.
bool CanPaste()
Returns true if the current state of the stage view will allow a paste operation. ...