|Important||This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer|
This family of articles covers window objects in the MFC framework. All MFC windows derive from class CWnd, including frame windows, views, dialog boxes, and controls.
The first group of articles describes window objects in general. Refer to this group for general information about C++ window objects, how they encapsulate an HWND, and how you use them when creating your own windows, such as child windows.
The second group of articles describes frame windows—windows that put a frame around content — in particular. Refer to this group for information about how the MFC framework manages frame windows and the contents that they frame, including control bars and views.
What do you want to know more about?
Topics on Window Objects in General
- Window objects
- Relationship between a C++ window objects and HWND handles
- Derived Window classes
- Creating window objects
- Destroying Window Objects
- Registering window "classes"
- Working with window objects
- Device contexts: objects that make Windows drawing device-independent
- Graphic objects: pens, brushes, fonts, bitmaps, palettes, regions
Frame Window Topics
- Frame windows: window objects that provide frames
- Frame windows and views
- Frame-window classes
- Frame-window styles
- Changing the styles of a window created by MFC
- What frame windows do
- Using frame windows
- Managing MD/Child windows (the MDICLIENT window)
- Managing menus, control bars, and accelerators
- Using Views
- Multiple Document Types, Views, and Frame Windows (Splitter windows)
- Messages (maps and handler functions)
Create and Destroy Windows
- General Window Creation Sequence
- Destroy window objects
- Create document frame windows
- Destroy frame windows
Create Splitter Windows
Manage Child Windows and the Current View
Work with Device Contexts and Window Styles