本文共 407 字,大约阅读时间需要 1 分钟。
HBRUSH CPenWidthsDlg::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor)
{// ??????????????????????HBRUSH hbr = CDialog::OnCtlColor(pDC, pWnd, nCtlColor);// ?????IDC_EDIT?? if (pWnd->GetDlgCtrlID() == IDC_EDIT) { // ????????? pDC->SetTextColor(RGB(255, 0, 0)); // ??????????????? pDC->SetBkMode(TRANSPARENT); } // ??????? brush handle return (HBRUSH)::GetStockObject(NULL_BRUSH); }
转载地址:http://kowr.baihongyu.com/