设置控件透明.docVIP

  • 5
  • 0
  • 约7.26千字
  • 约 8页
  • 2016-10-16 发布于河南
  • 举报
设置控件透明

设置CEdit控件背景为透明 C++ MFC 分类:?Windows编程?非发表文章?代码片段2009-02-07 17:30?835人阅读?评论(0)?收藏?举报 view plain HBRUSH?CPenWidthsDlg::OnCtlColor(CDC*?pDC,?CWnd*?pWnd,?UINT?nCtlColor)?? {?? ???//?Call?the?base?class?implementation?first!?Otherwise,?it?may?? ???//?undo?what?were?trying?to?accomplish?here.?? ???HBRUSH?hbr?=?CDialog::OnCtlColor(pDC,?pWnd,?nCtlColor);?? ?? ???//?Are?we?painting?the?IDC_MYSTATIC?control??We?can?use?? ???//?CWnd::GetDlgCtrlID()?to?perform?the?most?efficient?test.?? ???if?(pWnd-GetDlgCtrlID()?==?IDC_EDIT)?? ???{?? ??????//?Set?the?text?color?to?red?? ??????pDC-SetTextColor(RGB(255,?0,?

文档评论(0)

1亿VIP精品文档

相关文档