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 Tech Support » transparent edit control Collapse All
Subject Author Date
Chris Anderson Sep 15, 2009 - 6:25 PM

Is it possible to make the edit control on a dialog  "transparent" ?  For those themes with non-gradient background ( like lunar blue or native XP ) we can simply use the same background color of the dialog. But this work around doesn’t work for the theme with gradient background like office 2007 R1.

Technical Support Sep 16, 2009 - 11:09 AM

Edit controls are not transparent. You can replace the background of an edit window only by handling its WM_CTLCOLOR message and providing it with the bitmap pattern brush for painting its background. This brush should be based on a bitmap image with the size equal to size of editor’s client area. The CExtEditBase class handles it. It has the ON_WM_CTLCOLOR_REFLECT() message map entry and the CExtEditBase::CtlColor() handler method.