Graphics Reference
In-Depth Information
GUI ID:
IDD_SCENETREE_CONTROL
Data Type:
CSceneTreeControl
Placeholder for:
XformInfoControl
GUI ID:
IDD_XFORMINFO_CONTROL
Data Type:
CXformInfoControl
Placeholder for:
PrimitiveControl
Place into
Placeholder
at run time
(
ReplaceDialogControl()
)
Placeholder for:
SceneTreeControl
Place into
Placeholder
at run time
(
ReplaceDialogControl()
)
GUI ID:
IDD_PRIMITIVE_CONTROL
Data Type:
CPrimitiveControl
Main Application Window
Data Type:
CTutorialDlg
Figure 11.11.
GUI containers of Tutorial 11.5.
class
CSceneTreeControl :
public
CDialog {
// ... details related to MFC not shown ...
A:
virtual BOOL
OnInitDialog();
// Called by MFC during initialization
.
CXforomInfoControl m
_
XformControl;
CPrimitiveControl m
_
PrimitiveControl;
// support PrimitiveControl
// build the GUI scene tree structure
void
BuildSceneTree(UWB
_
SceneNode
*
, HTREEITEM);
B:
// ... other GUI event service routines not shown ...
};
BOOL
CSceneTreeControl::OnInitDialog() {
.
// Builds GUI SceneTree structure
C:
BuildSceneTree(theApp.GetModel().GetRootNode());
UWBMFC
_
ReplaceDialogControl(...,m
_
XformControl, IDD
_
XFORMCONTROL
_
DIALOG);
UWBMFC
_
ReplaceDialogControl(...,m
_
PrimitiveControl, IDD
_
PRIMITIVE
_
CONTROL);
.
D:
Source file.
SceneTreeControl.h
file
in the
Controls
folder of the
D3D
_
SceneTreeControl
project.
Listing 11.9.
The
CSceneTreeControl
class of Tutorial 11.5.
Search WWH ::
Custom Search