Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

More Problems with OnCtrlColor

Status
Not open for further replies.

Valius

Programmer
Oct 20, 2000
174
US
Alright, here we go AGAIN...Still having problems with this. What I'm trying to do is change my main dialog's background color to black instead of that horrid pale grey. To do this, I'm overriding the OnCtlColor function. I've made a member variable called m_brush for my dialog. This is what I'm doing:

pDC->SetBkColor(0x00000000);
return (m_brush);

Simple and sweet. I'm returning my brush instead of the hbr of OnCtlColor. However, I'm wondering one thing here....hbr is of type HBRUSH, and my member variable m_brush is of type CBrush...will that not make it work? PLEASE any comments on HOW to get this thing to act properly will be GREATLY appreciated. Thanks in advance.

Niky Williams
NTS Marketing
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top