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 » cextflatedit background color in read only Collapse All
Subject Author Date
Riki Risnandar Mar 31, 2005 - 9:34 AM

i have CExtFlatEdit with read only mode and the background color is standard (white). i want to change the background color so its the same with the theme manager background color.. the concept is like having a CExtLabel but the user can copy or select that text.

 

can i do that ?

 

regards,

Riki Risnandar

Technical Support Apr 1, 2005 - 8:59 AM

Please take a look at the WM_CTLCOLORSTATIC and WM_CTLCOLOREDIT messages. These messages are sent to the parent window of any edit control when the control is about to be drawn. By responding to this message, the parent window can use the specified device context handle to set the text and background colors of the edit control.