一个对话框对应的类中有个函数叫OnInitDialog(),请问什么时候会执行这个函数?是点击这个对话框的时候吗?非常感谢!!!!
解决方案 »
- 怎么让mfc里的编辑框 点上去以后不出现那个 输入光标
- 如何用MFC多文档编写动画演示程序
- 使用MFC单文档,如何在刚开始就进入全屏状态
- 有简单的方法改变CListCtrl也就是ListView的滚动条的颜色吗
- 高分相送:关于vc控件的简单问题
- 怎么注册一个热键,可以调用程序中的一样功能?
- vc中如何将程序(调用了DLL)与被调用的dll绑定一起调试(DLL已有源码),能解答者给分
- MFC socket selectFD_SETSIZE的限制问题
- 我在MFC中加载mapx控件来显示地图,现在想用CDC在地图上画一个显示位置的箭头
- 就想让程序在打印时以我的纸张长宽打印,其它都不动,得把哪个小参数给改动一下?
- 新手问题:关于CTreeView的"+","-"号
- 求教如何通过SOCKS5代理打开网页
我一般都假设它是在创建对话框窗口之后、显示对话框窗口之前执行的这个函数。
我按这样的假设处理对话框好像还都没遇到什么问题。
View类里面的OnInitialUpdate()和这个好像一个样子。
------------------------
This message is sent to the dialog box during the Create, CreateIndirect, or DoModal calls, which occur immediately before the dialog box is displayed. Override this member function if you need to perform special processing when the dialog box is initialized. In the overridden version, first call the base class OnInitDialog but disregard its return value. You will normally return TRUE from your overridden member function. Windows calls the OnInitDialog function through the standard global dialog-box procedure common to all Microsoft Foundation Class Library dialog boxes, rather than through your message map, so you do not need a message-map entry for this member function.