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
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