Visual C++ / MFC
Windows desktop development with the Microsoft Foundation Classes.
1. Getting Started
- Win32 Foundations beginner
Handles, WinMain, the window procedure and the message loop.
- Hello MFC: CWinApp and CFrameWnd beginner
The smallest MFC application: one application object and one frame window.
- MFC Project Types and the Wizard beginner
SDI, MDI, dialog-based and what the generated files contain.
- MFC Class Hierarchy Overview beginner
CObject, CCmdTarget, CWnd and friends.
2. Application Architecture
- Message Maps intermediate
How MFC routes Windows messages and menu/button commands to your C++ member functions.
- Command Routing and UI Updates intermediate
Who handles WM_COMMAND, and ON_UPDATE_COMMAND_UI.
- CWnd, Child Windows and Subclassing intermediate
Creating and customizing windows and controls.
- CString and Collection Classes beginner
CString, CArray, CList, CMap and conversion pitfalls.
- Runtime Class Information and Dynamic Creation advanced
DECLARE_DYNAMIC, DECLARE_DYNCREATE and IsKindOf.
3. Document/View Architecture
- Documents, Views and Frames intermediate
The document/view model and how the pieces connect.
- SDI and MDI Applications intermediate
Single vs multiple document interfaces and templates.
- Serialization and CArchive intermediate
Saving and loading documents with Serialize().
- Scroll Views, Form Views and Splitters intermediate
CScrollView, CFormView and CSplitterWnd.
4. Dialogs and Controls
- Dialogs and DDX/DDV intermediate
Build a modal dialog and exchange data between controls and member variables with DDX/DDV.
- Common Controls: List, Tree, Combo intermediate
CListCtrl, CTreeCtrl, CComboBox and notification messages.
- Modeless Dialogs and Property Sheets intermediate
Tabbed settings and non-blocking dialogs.
- Common Dialogs beginner
File, color, font and print dialogs.
5. Menus, Toolbars and Ribbon
- Menus and Accelerators beginner
Menu resources, context menus and keyboard shortcuts.
- Toolbars and Status Bars beginner
Command bars and dynamic status panes.
- Ribbon and the Feature Pack advanced
Office-style ribbon UI, docking panes and visual managers.
6. Graphics and Printing
- GDI and Device Contexts intermediate
CDC, OnDraw, pens, brushes and WM_PAINT.
- Fonts, Bitmaps and Icons intermediate
Text rendering and image handling.
- GDI+ and Printing advanced
Anti-aliased drawing and OnPrint/print preview.
7. Data, System and Interop
- Files, the Registry and INI Settings intermediate
CFile, CStdioFile and persistent application settings.
- Database Access with ODBC advanced
CDatabase and CRecordset.
- Threads and Timers advanced
Worker threads, UI threads, SetTimer and synchronization.
- Networking with Sockets advanced
CAsyncSocket and CSocket.
- DLLs, ActiveX and COM advanced
Regular vs extension DLLs and using COM from MFC.
8. Debugging and Maintenance
- Debugging: ASSERT, TRACE and Leak Detection intermediate
Debug macros, afxDump and finding memory leaks.
- Unicode, 64-bit and Visual Studio Migration intermediate
TCHAR, _T and upgrading legacy MFC projects.
- Using Modern C++ in MFC Projects intermediate
Smart pointers, lambdas and the STL alongside MFC.