WM_CREATE和WM_INITDIALOG

简介: WM_CREATE和WM_INITDIALOG消息响应函数之区别,以及MFC应用程序中处理消息的...        在响应WM_CREATE消息响应函数的时候,对话框及子控件还未创建完成,亦是说只是通知系统说要开始创建窗口啦,这个消息响应完之后,对话框和子控件才开始创建。
WM_CREATE和WM_INITDIALOG消息响应函数之区别,以及MFC应用程序中处理消息的...

       在响应WM_CREATE消息响应函数的时候,对话框及子控件还未创建完成,亦是说只是通知系统说要开始创建窗口啦,这个消息响应完之后,对话框和子控件才开始创建。因此在此消息响应函数中无法对控件进行修改和初始化。

        而WM_INITDIALOG消息响应函数是在程序运行时,当其对话框和子控件全部创建完毕,将要显示内容的时候发送的消息。因此可以在WM_INITDIALOG消息响应函数中添加对编辑框控件的初始化和修改。

目录
相关文章
|
存储 Cloud Native 程序员
C++ Qt 事件(event)
C++ Qt 事件(event)
25 QT - event函数
25 QT - event函数
60 0
SAP WM&SD集成之Copy WM Quantity – Not Copy WM qty as delivery qty into delivery But PGI
SAP WM&SD集成之Copy WM Quantity – Not Copy WM qty as delivery qty into delivery But PGI
SAP WM&SD集成之Copy WM Quantity – Not Copy WM qty as delivery qty into delivery But PGI
SAP WM&SD集成之Copy WM Quantity – Copy WM qty as delivery qty into delivery and PGI
SAP WM&SD集成之Copy WM Quantity – Copy WM qty as delivery qty into delivery and PGI
SAP WM&SD集成之Copy WM Quantity – Copy WM qty as delivery qty into delivery and PGI
SAP WM&SD集成之Copy WM Quantity – Copy WM qty as delivery qty into delivery
SAP WM&SD集成之Copy WM Quantity – Copy WM qty as delivery qty into delivery
SAP WM&SD集成之Copy WM Quantity – Copy WM qty as delivery qty into delivery
SAP WM & Shipping integration: Copy WM Quantity(1)
SAP WM & Shipping integration: Copy WM Quantity(1)
SAP WM & Shipping integration: Copy WM Quantity(1)
SAP WM & Shipping integration: Copy WM Quantity(2)
SAP WM & Shipping integration: Copy WM Quantity(2)
SAP WM & Shipping integration: Copy WM Quantity(2)
|
API Windows
宏定义WM_USER,与自定义宏WM_USER+100
宏定义WM_USER,与自定义宏WM_USER+100
170 0