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 » Modifing to XP style Collapse All
Subject Author Date
Seeker May 20, 2003 - 7:23 AM

Hello.

I’m just beginning to use Prof-UIS, so try to indulge.

Would you tell the best way to switch application (for example simple dilalog based) to the Windows XP style. There is a source fragment g_PaintManager.InstallPaintManager(new CExtPaintManagerXP); in the librarie’s examples I found. If call the function at the place of dialog initialization It’ll be only controls modifing, but a system menu is the same?

B.Regards.
Seeker.

Sergiy Lavrynenko May 21, 2003 - 9:27 AM

Hi,

XP style is used by default. You don’t have to call InstallPaintManager(new CExtPaintManagerXP).

In the dialog based application you need to use CExtWS<CDialog> as a base type of your dialog class (instead of CDialog). You may derive your class from CExtResizableDialog if you need resizing features (and automatic child controls repositioning). You may find CAboutDlg class in the MDIDOCVIEW sample. This is the simplest dialog with the current UI style (XP or 2K).

To see the dialog controls in XP style you should add their variables and use CExt... classes.

Regards, Sergiy.