Changing From Dialog to Tab
-
Hi, I have created an application which consists of dialog boxes corresponding to the various options. Presently i call each dialog box on the click of a particular button. Now i want to use a tabbed structure instead of buttons. How can i do that. One possible way is to change the base class of the dialog objects from CDialog to CPropertySheet & then use the AddPage api to display the dialog. But how do i redefine the base class?
-
Hi, I have created an application which consists of dialog boxes corresponding to the various options. Presently i call each dialog box on the click of a particular button. Now i want to use a tabbed structure instead of buttons. How can i do that. One possible way is to change the base class of the dialog objects from CDialog to CPropertySheet & then use the AddPage api to display the dialog. But how do i redefine the base class?
-
class CmyClass : public CDialog CPropertySheet {
//...
};like this ?:confused:
TOXCCT >>> GEII power
Hi This may work, but MUST HAVE TO CHANGE THE STYLE of the dialog template(THIN etc) Sujan
-
Hi, I have created an application which consists of dialog boxes corresponding to the various options. Presently i call each dialog box on the click of a particular button. Now i want to use a tabbed structure instead of buttons. How can i do that. One possible way is to change the base class of the dialog objects from CDialog to CPropertySheet & then use the AddPage api to display the dialog. But how do i redefine the base class?
anless change name of base class from CDialog to CPropertyPage u need to change in macross to (IMPLEMENT_DYNAMIC(..., CPropertyPage) and in BEGIN_MESSAGE_MAP(..., CPropertyPage) and change anywhere in code where is use base class :) After that u must create object from CPropertySheet to wich you add your dialogs .... and it wil work :)