PreCreateWindow和OnCreate的区别?GetDlgItem(IDC_EDIT)与 GetDlgItem(IDC_EDIT)->m_hWnd的区别
解决方案 »
- 工具栏的简介和操作视频
- 什么时候应该创建一个兼容的DC呢
- 被个小问题卡住了,cstring转化为int
- 请问我的程序基于oledb,在NT下无法运行,该怎么办?
- @@@@@@@@@@ 经验问题: 比较难---怎么将多个回调函数 定义成一个回调函数数组? @@@
- !!关于动态ocx注册的问题!!
- 多视图框架问题
- 如何将HWND(窗口句柄)类型的变量转化为VARIANT类型的变量??
- 能否按名字调用com的方法
- 如何在一个程序中知道拨号连接是否断开
- 贴出全部程序请好心的朋友和高手帮我检查并改正错误(Raw Sockets编写的发送、接受和解析数据包)
- WM_MOUSELEAVE msdn里咋没有?
Called by the framework before the creation of the Windows window attached to this CWnd object.Never call this function directly.The default implementation of this function checks for a NULL window class name and substitutes an appropriate default. Override this member function to modify the CREATESTRUCT structure before the window is created. Each class derived from CWnd adds its own functionality to its override of PreCreateWindow. By design, these derivations of PreCreateWindow are not documented. To determine the styles appropriate to each class and the interdependencies between the styles, you can examine the MFC source code for your application’s base class. If you choose to override PreCreateWindow, you can determine whether the styles used in your application’s base class provide the functionality you need by using information gathered from the MFC source code.
CWnd::OnCreate
The framework calls this member function when an application requests that the Windows window be created by calling the Create or CreateEx member function. The CWnd object receives this call after the window is created but before it becomes visible. OnCreate is called before the Create or CreateEx member function returns.
Override this member function to perform any needed initialization of a derived class. The CREATESTRUCT structure contains copies of the parameters used to create the window.Note This member function is called by the framework to allow your application to handle a Windows message. The parameters passed to your function reflect the parameters received by the framework when the message was received. If you call the base-class implementation of this function, that implementation will use the parameters originally passed with the message and not the parameters you supply to the function.