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 » change the font of the default button in CExtMsgBox::DoMsgBox() Collapse All
Subject Author Date
HP Jiang Jun 28, 2010 - 11:40 PM

hi,


I want to change the font of default button in CExtMsgBox::DoMsgBox(). In default, the default button text is bold under certain skin theme if using the profskin.dll staff.


how is the solution?


thanks


 


 

Technical Support Jun 30, 2010 - 7:58 AM

The PaintPushButton() virtual method can also be used in your task.

Technical Support Jun 29, 2010 - 9:57 AM

You can use your paint manager class which overrides the CExtPaintManager::PaintPushButtonText() virtual method:

void CExtPaintManager::PaintPushButtonText(
            CDC & dc,
            CRect & rcCaption,
            CExtPaintManager::PAINTPUSHBUTTONDATA & _ppbd
            )

The CExtPaintManager::PAINTPUSHBUTTONDATA::m_hFont parameter allows you to specify the desired font.
The CExtPaintManager::PAINTPUSHBUTTONDATA::m_pHelperSrc parameter can be a pointer to CExtButton object. This means you can detect button windows.

HP Jiang Jun 29, 2010 - 10:50 PM

CExtPaintManager::PaintPushButtonText can not be called back. but, void PaintPushButton() can be called back.

I am using prof-uis 2.88 version.

thanks

Jiang Haipeng