創建窗體 ...
1. WM_GETMINMAXINFO
2. WM_NCCREATE
3. WM_NCCALCSIZE
4. WM_CREATE
創建完畢.
顯示窗體 ...
1. WM_SHOWWINDOW
2. WM_WINDOWPOSCHANGING
3. WM_WINDOWPOSCHANGING
4. WM_ACTIVATEAPP
5. WM_NCACTIVATE
6. WM_GETTEXT
7. WM_ACTIVATE
8. WM_SETFOCUS
9. WM_NCPAINT
10. WM_GETTEXT
11. WM_ERASEBKGND
12. WM_WINDOWPOSCHANGED
13. WM_SIZE
14. WM_MOVE
顯示完畢.
更新窗體...
WM_PAINT
更新結束.
//當點擊"最小化"......
1. WM_NCLBUTTONDOWN
2. WM_CAPTURECHANGED
3. WM_SYSCOMMAND
4. WM_GETMINMAXINFO
5. WM_GETTEXT
6. WM_WINDOWPOSCHANGING
7. WM_GETMINMAXINFO
8. WM_NCCALCSIZE
9. WM_NCPAINT
10. WM_GETTEXT
11. WM_ERASEBKGND
12. WM_WINDOWPOSCHANGED
13. WM_MOVE
14. WM_SIZE
//點擊"最大化"..........
1. WM_NCLBUTTONDOWN
2. WM_CAPTURECHANGED
3. WM_SYSCOMMAND
4. WM_GETTEXT
5. WM_WINDOWPOSCHANGING
6. WM_GETMINMAXINFO
7. WM_NCCALCSIZE
8. WM_NCPAINT
9. WM_GETTEXT
10. WM_ERASEBKGND
11. WM_WINDOWPOSCHANGED
12. WM_MOVE
13. WM_SIZE
//點擊“關閉”.......
1. WM_NCLBUTTONDOWN
2. WM_CAPTURECHANGED
3. WM_SYSCOMMAND
4. WM_CLOSE
5. WM_WINDOWPOSCHANGING
6. WM_WINDOWPOSCHANGED
7. WM_NCACTIVATE
8. WM_ACTIVATE
9. WM_ACTIVATEAPP
10. WM_KILLFOCUS
11. WM_DESTROY
12. WM_NCDESTROY