Window Objects Samples
CWnd is the base class for all framework window classes, including view classes and frame window classes. CWnd offers member functions for almost all of the Windows HWND-based functions and WM_ messages. These CWnd functions and message handlers are illustrated in almost all of the samples.
The following samples illustrate some techniques for using window objects that are specific to using the Foundation classes or that are not covered in general Windows programming literature:
- CTRLBARS implements a thin title bar, like that used for dragging a tool palette.
- CTRLTEST and SUPERPAD subclass a window to associate a CWnd derived class with an HWND window.
- MDI changes the default cursor or icon of a window by calling AfxRegisterWndClass and passing the WNDCLASS name to CWnd::Create.
- PROPDLG illustrates a modeless mini-frame window, which has a thin title bar for dragging the window.
- SUPERPAD implements persistent window placement by storing window position information in a private .INI file.
See Also
Microsoft Foundation Class Library Samples Index