OnCreate ,OnSize , OnInitDialog哪个先执行的问题
来源:互联网 发布:finalsub mac破解版 编辑:程序博客网 时间:2024/06/09 19:06
OnCreate/OnSize/OnInitDialog哪个先执行?2008-04-19 23:05本来早就发布在了windows live space里,可是又觉得这样对不起csdn的blog,还是把它们都贴过来的吧。虽然有点肤浅,都是最基本的常识,不过虽然我是菜鸟呢,唉 毕业设计开始一段时间了。经过了前一阶段的需求分析和设计,终于开始编码,然而……好久不写,生疏掉了,于是赶紧把遇到的问题写下来,以防以后忘掉。1、OnCreate/OnSize/OnInitDialog哪个先执行? 下面是从MSDN上选的: OnCreate:The framework calls this member function when an application requests that the windows windows be created by calling the Create or CreateEx member function. The CWnd object receives this member function to perform any needed initialization before it becomes visible. OnSize: The framework calls this member function after the window's size has changed. OnInitDialog:This member function is called in response to the WM_INITDIALOG message. This message is sent to the dialog box during the Create, CreateIndirect, or DoModal calls, which occur immediately before the dialog box is displayed. 从MSDN的解释来看,OnCreate应该是在OnInitDialog之前被调用的。但是和OnSize的顺序还是看不太明显。于是……哈哈,我们有MessageBox 测试的结果是 OnCreate > OnSize > OnInitDialog 看到的也可以去试试,万一我说错,赶紧告诉我。
- OnCreate ,OnSize , OnInitDialog哪个先执行的问题
- MFC的OnCreate/OnSize/OnInitDialog哪个先执行?
- OnInitDialog与OnSize的执行顺序
- MFC中OnInitDialog与OnSize函数谁先调用
- OnCreate,OnInitDialog
- 注意mfc下oninitdialog()和onsize()的调用顺序
- 对于Dialog,OnCreate()和OnInitDialog()的关系
- oncreate,oninitialupdate,oninitdialog
- oncreate OnInitDialog 先后
- Oncreate,Oninitialupdate,Oninitdialog
- OnCreate&&OnInitDialog、Onclose&&OnDestroy
- OnCreate和OnInitDialog
- 问题:子进程父进程哪个先执行:【转】关于 fork 和父子进程的理解 + 【转】
- ONSIZE函数中调整CComboBox的问题
- ONSIZE函数中调整CComboBox的问题 .
- Android开发中Activity中onCreate重复执行的问题
- 关于Activity中onCreate()方法执行两次的问题
- 关于activity不执行oncreate方法的问题
- ant errors
- VLC的ACtiveX插件使用方法
- CAN总线与RS485的比较
- 转:resin3.1处理utf-8格式的jsp时存在的问题
- linq之like操作
- OnCreate ,OnSize , OnInitDialog哪个先执行的问题
- swing 窗口回车按下时的默认执行按钮设定
- new和delete
- Apache Ant安装
- 获取iframe中src页中的对象
- VS2010 无2.0目标框架
- jQuery调用WCF返回JSON对象
- sql 查询 当天 当月 上月 记录
- JRE 安装和配置,以适合JAVA程序运行所具备的环境