Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS General Discussion » problem with add variable wizard under visual studio 2008 Collapse All
Subject Author Date
Borremans Pierre Aug 2, 2010 - 2:30 AM

When we try to add a variable with the visual studio wizard for a control in a cextresizabledialog, all control are empty and disable. If we change the cextresizabledialog by cdialog the add variable wizard works great



 


 

Technical Support Aug 2, 2010 - 8:02 AM

Visual Studio wizards does not not work with C++ classes which have template decorator parent classes. The CExtResizableDialog class is derived from the CExtWA < CExtWS < CExtADLG < CExtResDlg > > > class. So, all the CExtResizableDialog-derived classes require small modification before you will be able to use Visual Studio wizards. If your dialog is declared as:

class CYourDialog : public  CExtResizableDialog

Then you should temporarily change the line of code above to:
class CYourDialog : public  CDialog

Now Visual Studio wizards will work OK and you can use the Add Member Variable wizard. You don’t need to replace CExtResizableDialog with CDialog in any other lines of your project. When you finished using Visual Studio wizards, you should rollback your dialog class declaration to:
class CYourDialog : public  CExtResizableDialog