kishk91
September 17th, 1999, 04:14 PM
yoo gurus....
can you please help me with lil something here?
i have dialog base app and this is my OnCtlColor class..
HBRUSH CDlgClass::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor)
{
HBRUSH hbr = CDialog::OnCtlColor(pDC, pWnd, nCtlColor);
//pDC->SetTextColor(RGB(0,0,255));
if(pWnd==GetDlgItem(IDC_RADIO1))
pDC->SetTextColor(RGB(255,0,0));//this dosent work why?
return hbr;
}
now i wanna set diffrent colors for some controls
but it dosent work...
any ideas guys??
and my second question is how can i change the color of the conrol (radio buttons and check boxes) when the mouse is over them??
thanks in advance
kishk91
kishk91@hotmail.com
http://www.path.co.il
ICQ: 13610258
can you please help me with lil something here?
i have dialog base app and this is my OnCtlColor class..
HBRUSH CDlgClass::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor)
{
HBRUSH hbr = CDialog::OnCtlColor(pDC, pWnd, nCtlColor);
//pDC->SetTextColor(RGB(0,0,255));
if(pWnd==GetDlgItem(IDC_RADIO1))
pDC->SetTextColor(RGB(255,0,0));//this dosent work why?
return hbr;
}
now i wanna set diffrent colors for some controls
but it dosent work...
any ideas guys??
and my second question is how can i change the color of the conrol (radio buttons and check boxes) when the mouse is over them??
thanks in advance
kishk91
kishk91@hotmail.com
http://www.path.co.il
ICQ: 13610258