关于SetDialogBkColor函数

shn521 2011-06-16 12:07:44
我在BOOL CSDXApp::InitInstance()里添加了
//设置对话框背景和文本颜色
SetDialogBkColor(RGB(160,190,220),RGB(0,0,0));
请问为什么没有效果呢,感谢
...全文
369 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
shn521 2011-06-17
  • 打赏
  • 举报
回复
[Quote=引用 6 楼 xianglitian 的回复:]
那个程序是不是处理了WM_CTLCOLOR消息呢
[/Quote]
有一个,但是绘制其他地方的,注释掉了也好用。
我用WM_CTLCOLOR都处理一遍了,就不用SetDialogBkColor
感谢啊
向立天 2011-06-17
  • 打赏
  • 举报
回复
那个程序是不是处理了WM_CTLCOLOR消息呢
向立天 2011-06-16
  • 打赏
  • 举报
回复
karlson0211 2011-06-16
  • 打赏
  • 举报
回复
放到构造函数中看看
shn521 2011-06-16
  • 打赏
  • 举报
回复
木有分了,大家帮帮忙
shn521 2011-06-16
  • 打赏
  • 举报
回复
[Quote=引用 4 楼 visualeleven 的回复:]
CWinApp::SetDialogBkColor

This function is obsolete.

Remarks
To set the background color of the dialog box, you must handle WM_CTLCOLOR. This message changes the color of the specified dialo……
[/Quote]
但是我这有个程序就是用的SetDialogBkColor,就可以实现啊
Eleven 2011-06-16
  • 打赏
  • 举报
回复
CWinApp::SetDialogBkColor

This function is obsolete.

Remarks
To set the background color of the dialog box, you must handle WM_CTLCOLOR. This message changes the color of the specified dialog box only.

15,979

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC 界面
社区管理员
  • 界面
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧