WTL中的窗口类
CWindow封装了Windows的大部分API,且CWindows只有一个变量m_hWnd。
还有一个类是CWindowImpl,它封装了class registration、 window subclassing、 message maps、和 一个基本的WindowProc()。
The WTL classes can be divided into a few major categories:
- Frame window implementation -
CFrameWindowImpl,CMDIFrameWindowImpl - Control wrappers -
CButton,CListViewCtrl - GDI wrappers -
CDC,CMenu - Special UI features -
CSplitterWindow,CUpdateUI,CDialogResize,CCustomDraw - Utility classes and macros -
CString,CRect,BEGIN_MSG_MAP_EX
类的使用
class CMyWindow : public CWindowImpl<CMyWindow, CWindow, CFrameWinTraits>, public CPaintBkgnd<CMyWindow, RGB(0,0,255)>

浙公网安备 33010602011771号