标签:对话 cpp 控件 cap ack content mod kobject efault
对应WM_CTLCOLOR函数
加入下面代码:
HBRUSH CMFCApplication2Dlg::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor) { .....
switch (pWnd->GetDlgCtrlID()) { case IDC_STATIC: { pDC->SetBkMode(TRANSPARENT); pDC->SetTextColor(RGB(0, 0, 0)); return (HBRUSH)GetStockObject(HOLLOW_BRUSH); } default: break; }
return hbr; }好就此搞定!
标签:对话 cpp 控件 cap ack content mod kobject efault
原文地址:http://www.cnblogs.com/yfceshi/p/7255771.html