设置static text背景透明
HBRUSH CNoticeView::OnCtlColor(CDC* pDC, CWnd* pWnd, UINTnCtlColor)
{
HBRUSH hbr = CFormView::OnCtlColor(pDC, pWnd, nCtlColor);
if (CTLCOLOR_STATIC == nCtlColor)
{
pDC->SetBkMode(TRANSPARENT);
return (HBRUSH)::GetStockObject(NULL_BRUSH);
} //设置控件背景透明
// TODO: 如果默认的不是所需画笔,则返回另一个画笔
return hbr;
}