how to make transparent check-box?

I add an event WM_CTLCOLOR and code like blow in it.

if(pWnd->GetDlgID() == IDC_CHECKBOX)
{
pDC->SetBkMode(TRANSPARENT);
return (HBRUSH)GetStockObject(NULL_BRUSH);
}

It works static text, group box,
but it doesn't on check box.

How to do that??

Any ideas?? Thanks.
It is becuase of XP theme bug. :)
NO bug.
Just use theme apis
Check out WM_CTLCOLORSTATIC.
Topic archived. No new replies allowed.