|
-
December 4th, 2003, 02:52 PM
#1
How to change the color of a button background
I am using a Class CxTargetButton for the buttons in my Dialog,
Now even afetr tryuing to use Message reflection, the background color of the buttons is not changing.
I can see the following method being called
HBRUSH CxTargetButton::CtlColor(CDC* p_DC, UINT nCtl)
{
p_DC->SetBkColor(RGB(255,255,255));
p_DC->SetTextColor(RGB(255,0,0));
return (HBRUSH)m_Brush;
}
But the background color is not changed to white as I want it to.
The method DrawItem has been overridden in the class, can that be causing this issue...
Pauli
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|