请问如何修改SDI窗口边框的颜色

yikai123 2006-12-28 12:33:08
如果用向导生成SDI程序,窗口边框颜色肯定是系统灰色
(不是文档背景色,而是菜单、工具栏所在的边框区域颜色?
在MFC下,有办法改这个颜色吗?

如果是自绘窗口,又该怎么弄?
我在WIN32程序里试了试,似乎不行啊

多谢大侠们的指点!!
有类似的代码也行,只要能帮着解决问题,一定给分!!
急啊~~~
...全文
270 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
xdlous 2006-12-28
  • 打赏
  • 举报
回复
http://www.vckbase.net/document/viewdoc/?id=1522

这里有你要的
一分之千 2006-12-28
  • 打赏
  • 举报
回复
CWnd::OnNcActivate
afx_msg BOOL OnNcActivate( BOOL bActive );

The framework calls this member function when the nonclient area needs to be changed to indicate an active or inactive state.

CWnd::OnNcPaint
afx_msg void OnNcPaint( );

Remarks

The framework calls this member function when the nonclient area needs to be painted. The default implementation paints the window frame.
mynamelj 2006-12-28
  • 打赏
  • 举报
回复
处理WM_NCPAINT消息,自已绘制就行了。
Elysium 2006-12-28
  • 打赏
  • 举报
回复
http://topic.csdn.net/t/20020826/16/971178.html

15,975

社区成员

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

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