mfc 单文档程序插入对话框出现闪屏

xdjinjian 2015-03-04 04:42:39
在mfc的单文档程序中插入对话框 缩放单文档时 对话框会闪屏 求解
...全文
201 11 打赏 收藏 转发到动态 举报
写回复
用AI写文章
11 条回复
切换为时间正序
请发表友善的回复…
发表回复
xdjinjian 2015-03-15
  • 打赏
  • 举报
回复
引用 10 楼 rxguoblp 的回复:
补充:直接用对话框程序来做你的界面,界面尺寸固定不变,这样程序好写。
最后采用 ribbon
rxguoblp 2015-03-07
  • 打赏
  • 举报
回复
补充:直接用对话框程序来做你的界面,界面尺寸固定不变,这样程序好写。
rxguoblp 2015-03-07
  • 打赏
  • 举报
回复
懂你的意思了。你是想用一整个dialog覆盖住后面单文档程序的view窗口,对吗? 如果对的话,感觉你的做法太 低 效!(如果理解不对,请忽视) 就算缩放单文档时对话框会不闪屏,你这样做的效果也不好看,因为:当窗口变大或变小时,你的控件的尺寸变不变?如果不变,是不是会难看? 建议: 1.直接在view窗口中“动态创建”你的控件,button,edit,static text等等;或者 2.直接用对话框程序来做即可(为对话框添加Menu,改变大小时:border属性设置为Resizing)
xdjinjian 2015-03-06
  • 打赏
  • 举报
回复
引用 6 楼 rxguoblp 的回复:
这种效果为什么不用“窗口分割”?splitterwnd
我这是一整个dialog 用splitterwnd的话要每个都写个dialog吗?
xdjinjian 2015-03-06
  • 打赏
  • 举报
回复
我这是一整个dialog 用splitterwnd的话要每个都写个dialog吗?
rxguoblp 2015-03-06
  • 打赏
  • 举报
回复
这种效果为什么不用“窗口分割”?splitterwnd
xdjinjian 2015-03-05
  • 打赏
  • 举报
回复

像上图 单文档内 插入对话框 改变大小出现闪屏
xdjinjian 2015-03-04
  • 打赏
  • 举报
回复
是新建的对话框 child
xdjinjian 2015-03-04
  • 打赏
  • 举报
回复
是Create()/ShowWindow
Eleven 2015-03-04
  • 打赏
  • 举报
回复
你的对话框是怎么插入的??又是怎么显示的?DoModal还是Create()/ShowWindow
赵4老师 2015-03-04
  • 打赏
  • 举报
回复
Setting a Breakpoint on a Message Received by a Windows Function You can set message breakpoints to stop the debugger when a particular WndProc function message is received. Note Message breakpoints work only on x86- or Pentium-based systems. To set a breakpoint on a message From the Edit menu, click Breakpoints. The Breakpoints dialog box appears. Click the Messages tab. In the Break At WndProc text box, type the name of the Windows function. If you are setting a breakpoint during a debug session, the list contains the exported functions in your project. In the Set One Breakpoint For Each Message To Watch list box, select the message. To set another breakpoint, press ENTER, and then repeat steps 3 and 4. The Breakpoints list displays the currently active breakpoints. Click OK to set the breakpoints. Note If you interrupt execution while Windows or other system code is running, the results can be unpredictable.

15,979

社区成员

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

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