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 Tech Support » How to convert CPropertySheet? Collapse All
Subject Author Date
Robert Webb Mar 16, 2009 - 10:56 PM

Hi,


Most MFC controls have Prof-UIS equivalents, and can simply be replaced for improved skinning etc.  However CPropertySheet doesn’t seem to be one of them.  What is the easiest way to get a CPropertySheet with CPropertyPages skinned by Prof-UIS?


If I use the obvious choice, CExtResizablePropertySheet, not everything is skinned properly, in particular the tabs.  Somewhere it recommended CExtTabPageContainerWnd instead, but that can’t be substituted directly as it is not derived from CDialog and is missing DoModal() etc.


Do you have a ready-to-go class I can slot in?  It seems like a strange thing to be missing.


Thanks,


Rob.

Technical Support Mar 17, 2009 - 10:14 AM

The CExtResizablePropertySheet and CExtResizablePropertyPage classes are designed for wizard mode property sheet only. They also work in tabbed property sheet mode with and without watermark area, but the tabbed mode well looks only if you are using 2000 or native XP paint managers. When we need a property sheet in our projects, we do the following:

1) Create a new popup dialog with OK, Cancel, Apply buttons at the bottom.

2) Rest of the dialog’s area is covered by the CExtTabPageContainerWnd window. You can create it in dialog’s OnInitDialog() virtual method.

3) Create several child dialogs, which are tab page windows. They are created as children of the CExtTabPageContainerWnd window and registered as tab pages using the CExtTabPageContainerWnd::PageInsert() method.