APS 非重点复习课程之可视化技术基础
The course is mainly about MFC (Visual C++)
Visual Studio
C++ Basis
encapsulation, inheritance, polymorphism
Windows C++
- Event
- Handle
- Message
MFC aka Microsoft Foundation Class
Event-driven
message-handing
MFC Basis
Visual Studio 2010
Compile - Link - Execute - Debug
Debug - smaller space, need compiler support
Release - larger space, execute compiler-free
MFC Class
- CObject
- CCmdTarget
- CWinThread
- CWinApp
- CDocument
- CView
- CMenu
- CDialog
- …
Afx function
- AfxAbort
- AfxBeginThread
- AfxEndThread
- AfxMessageBox
- AfxGetApp
- AfxRegisterWndClass
Message
- PeekMessage: only check queue
- GetMessage: check and get message
- PreTranslateMessage: filter message
- DispatchMessage: find handing function
Windows
Single Document Interface CFrameWnd
Multiple Document Interface CMDIFrameWnd
, CMDIChildWnd
Dialog CDialog
Menu
- GetMenu
- GetSubMenu
- CheckMenuItem
- SetDefaultItem
- SetMenuItemBitmaps
- EnableMenuItem
View
How to draw a pic?
How to output string?
…
Dialog & Controls
MessageBox(L"sdfekjfjke")
layout: buttons…
return value: IDYES, IDNO, IDOK, IDCANCEL, IDABORT, IDIGNORE, IDRETRY.
All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.
Comment