//HBRUSH Cv2Dlg::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor)
//{
// HBRUSH hbr = CDialogEx::OnCtlColor(pDC, pWnd, nCtlColor);
//
// switch (pWnd->GetDlgCtrlID())
// {
// case IDC_time:
// //pDC->SetBkMode(TRANSPARENT);
// //pDC->SetTextColor(RGB(0, 0, 0));
// return (HBRUSH)GetStockObject(NULL_BRUSH);
//
// default:
// break;
// }
//
// //if (pWnd->GetDlgCtrlID() == IDC_EDIT2) //如果是静态标签
// //{
// // pDC->SetBkMode(TRANSPARENT);//设置背景模式为透明
//
// // return (HBRUSH)GetStockObject(NULL_BRUSH);//返回一个空画刷
// //}
//
// //if (pWnd->GetDlgCtrlID() == IDC_EDIT2)
// //{
// // pDC->SetBkMode(TRANSPARENT); //设置背景透明
// // pDC->SetTextColor(RGB(0, 100, 0)); //改变字体的颜色
// // return HBRUSH(GetStockObject(HOLLOW_BRUSH));
// //}
// CWnd *pWnd = GetDlgItem(IDC_EDIT2); // 取得控件的指针
// //HWND hwnd = pWnd->GetSafeHwnd(); // 取得控件的句柄
// //CRect OnPaintRect;
// // pWnd = AfxGetApp()->m_pMainWnd->m_hWnd;
// // CWnd *pWnd = GetDlgItem(IDC_EDIT2);
// //pWnd->GetClientRect( &OnPaintRect);
//
//
//
// //InvalidateRect(pWnd, FALSE);
// // TODO: 在此更改 DC 的任何特性
// //if (pWnd->GetDlgCtrlID() == IDC_EDIT2)
// //{
// // pDC->SetBkMode(TRANSPARENT); //设置背景透明,这样,输出字符的时候就
// // //是所谓的空心字,而不是有白的底色
// // pDC->SetTextColor(RGB(255, 0, 0)); //改变字体的颜色
// //}
// return hbr;
//}
//{
// HBRUSH hbr = CDialogEx::OnCtlColor(pDC, pWnd, nCtlColor);
//
// switch (pWnd->GetDlgCtrlID())
// {
// case IDC_time:
// //pDC->SetBkMode(TRANSPARENT);
// //pDC->SetTextColor(RGB(0, 0, 0));
// return (HBRUSH)GetStockObject(NULL_BRUSH);
//
// default:
// break;
// }
//
// //if (pWnd->GetDlgCtrlID() == IDC_EDIT2) //如果是静态标签
// //{
// // pDC->SetBkMode(TRANSPARENT);//设置背景模式为透明
//
// // return (HBRUSH)GetStockObject(NULL_BRUSH);//返回一个空画刷
// //}
//
// //if (pWnd->GetDlgCtrlID() == IDC_EDIT2)
// //{
// // pDC->SetBkMode(TRANSPARENT); //设置背景透明
// // pDC->SetTextColor(RGB(0, 100, 0)); //改变字体的颜色
// // return HBRUSH(GetStockObject(HOLLOW_BRUSH));
// //}
// CWnd *pWnd = GetDlgItem(IDC_EDIT2); // 取得控件的指针
// //HWND hwnd = pWnd->GetSafeHwnd(); // 取得控件的句柄
// //CRect OnPaintRect;
// // pWnd = AfxGetApp()->m_pMainWnd->m_hWnd;
// // CWnd *pWnd = GetDlgItem(IDC_EDIT2);
// //pWnd->GetClientRect( &OnPaintRect);
//
//
//
// //InvalidateRect(pWnd, FALSE);
// // TODO: 在此更改 DC 的任何特性
// //if (pWnd->GetDlgCtrlID() == IDC_EDIT2)
// //{
// // pDC->SetBkMode(TRANSPARENT); //设置背景透明,这样,输出字符的时候就
// // //是所谓的空心字,而不是有白的底色
// // pDC->SetTextColor(RGB(255, 0, 0)); //改变字体的颜色
// //}
// return hbr;
//}