背景透明的static控件
摘要:
HBRUSH Xxxxx::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor){ HBRUSH hbr = CDialog::OnCtlColor(pDC, pWnd, nCtlColor); if (nCtlColor == CTLCOLOR_STATIC) { pDC->SetBkMode(TRANSPARENT); //pDC->SetTextColor(RGB(255,0,0)); return HBRUSH(GetStockObject(HOLLOW_BRUSH)); } return hbr;} 随手写的Demo,效果图:= 阅读全文
posted @ 2010-11-24 20:58 hgy413 阅读(108) 评论(0) 推荐(0) 编辑