开发者

How to make checkbox background transparent?

开发者 https://www.devze.com 2023-01-16 11:39 出处:网络
i use the following code to make check box background trans开发者_如何学Pythonparent or in my case off white but i can\'t find what wrong with this plz help me how to do this?

i use the following code to make check box background trans开发者_如何学Pythonparent or in my case off white but i can't find what wrong with this plz help me how to do this?

HBRUSH CfvcolorDlg::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor)
{
 HBRUSH hbr = CDialog::OnCtlColor(pDC, pWnd, nCtlColor);

 pDC->SetBkColor(MYCOLOR);

 if((HBRUSH)brush == NULL)
    brush.CreateSolidBrush(MYCOLOR);
 return (HBRUSH) brush;
}  


where is 'brush' declared? As you posted it it won't even compile.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号