The information in this article applies to:
-
The Microsoft Foundation Classes (MFC), when used with:
-
Microsoft Visual C++, 32-bit Enterprise Edition 5.0
-
Microsoft Visual C++, 32-bit Enterprise Edition 6.0
-
Microsoft Visual C++, 32-bit Professional Edition 5.0
-
Microsoft Visual C++, 32-bit Professional Edition 6.0
-
Microsoft Visual C++, 32-bit Learning Edition 6.0
This article was previously published under Q185672
SUMMARY
When creating a simple CDialogBar, such as one with only CButtons similar
to MFC's print preview, it is not necessary to derive from CDialogBar
because the parent of CControlBar receives the notification messages from
any child controls.
However, in the case of a more complex CDialogBar, which might have a drop-
down combo box, a treeview, or ActiveX control, it might be useful to
derive from CDialogBar to provide initialization for the child controls.
Because ClassWizard does not support deriving a class from CDialogBar, this
article shows the steps necessary to create a class from CDialog and then
"convert" the class to CDialogBar.
REFERENCES
For more information, click the following article number to view the article in the Microsoft Knowledge Base:
99161
How to derive from classes not listed in ClassWizard
Modification Type:
|
Major
|
Last Reviewed:
|
5/26/2005
|
Keywords:
|
kbhowto kbMFCCtrlBar KbUIDesign kbwizard KB185672 kbAudDeveloper
|