code_junkie

How to make the group-box text background transparent

Nov 12th, 2011
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. HBRUSH CMyDialog::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor)
  2. {
  3. HBRUSH hbr = CDialog::OnCtlColor(pDC, pWnd, nCtlColor);
  4. if(bSetBkTransparent_)
  5. {
  6. pDC->SetBkMode(TRANSPARENT);
  7. hbr = (HBRUSH)GetStockObject(NULL_BRUSH);
  8. }
  9.  
  10.  
  11. return hbr;
  12. }
Add Comment
Please, Sign In to add comment