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 » CExtLabel Overrid Collapse All
Subject Author Date
Martin Barringer Jun 28, 2012 - 8:20 PM

I have a need to use CExtLabel to respond to a double click of the left mouse button in the control field.  I derived a class from CExtLabel and added the OnLButtonDblClick available for CStatic derived classes.  Now however, I am unable to change the base CExtLabel text color or background color.  The background is the standard Windows gray with black text.  Changing the color of these using the CExtLabel methods has no effect.  Plus the control will not detect the left mouse double click.  How do you derive a class from CExtLabel to still apply the colors and respond to mouse actions?

Technical Support Jul 5, 2012 - 10:01 AM

Mouse double click messages are sent to the windows based on the window class that registered with the CS_DBLCLKS class style. Other types of windows do not receive double click notification messages. Pleas use a hook if you need double click messages over a label control or switch to other other type of window that is registered with the CS_DBLCLKS class style.
The CExtLabel::SetBkColor() and CExtLabel::SetTextColor() methods allow you to change label colors.