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 » CExtButton Collapse All
Subject Author Date
Gernot Griesser Feb 22, 2005 - 7:05 AM

I’ve tried to use your CExtButton.


CExtButton m_button1;
m_button1.SetIcon(IDI_ICON1);
m_button1.SetFlat(FALSE);


Now I’ve some troubles:


- Visual Studio doesn’t know __ALIGN_HORIZ_RIGHT or __ALIGN_HORIZ_LEFT?


- My button uses Office 2003 (flat) style but I’d like one that looks "normal" (Windows XP manifest file). Please see also original Office 2003 buttons.


Yours,
Gernot

Technical Support Feb 22, 2005 - 9:44 AM

__ALIGN_HORIZ_XXX constants are declared in the CExtPaintManager class, so just specify the CExtPaintManager:: prefix before constant names:

CExtPaintManager::__ALIGN_HORIZ_RIGHT
The CExtButton does not support the original Windows XP look. You can use the standard MFC buttons (CButton).