Cwnd的问题
来源:百度知道 编辑:UC知道 时间:2024/06/03 21:19:55
CWnd Class
See Also Send Feedback
Provides the base functionality of all window classes in the Microsoft Foundation Class Library.
class CWnd : public CCmdTarget
Remarks
A CWnd object is distinct from a Windows window, but the two are tightly linked. A CWnd object is created or destroyed by the CWnd constructor and destructor. The Windows window, on the other hand, is a data structure internal to Windows that is created by a Create member function and destroyed by the CWnd virtual destructor. The DestroyWindow function destroys the Windows window without destroying the object.
The CWnd class and the message-map mechanism hide the WndProc function. Incoming Windows notification messages are automatically routed through the message map to the proper OnMessage CWnd member functions. You override an OnMessage member function to handle a member's particular message in your derived classes.
The CWnd class also lets