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 text color in CExtMsgBox Collapse All
Subject Author Date
Borremans Pierre Mar 30, 2010 - 6:43 AM

Is it possible to change the text color in a CExtMsgBox ?

Technical Support Mar 30, 2010 - 12:29 PM

You should use your own CExtMsgBox-derived class and override the OnInitDialog() virtual method. Your method should invoke the parent class method and then colorize the label control displaying the message text. For example, this line of code makes the message text red:

   m_wndLabelMsgBoxMessageText.SetTextColor( true, RGB(255,0,0) );