-
controls are useful preset of child window
- but control is little different with normal child window
- control doesn’t need class registing
- control send message(WM_COMMAND) to its parent window’s callback function (window processor)
- but control is little different with normal child window
-
send WM_COMMAND to parent window
- control gives parameters with wParam and lParam
- wParam
- 4 bytes
- first 2 bytes contains Notify code, notifying what kind of message control made
- can get with
HIWORD(wParam)
- can get with
- last 2 bytes contains control’s ID
- can get with
LOWORD(wParam)
- can get with
- lParam
- control’s handle
- wParam
- control gives parameters with wParam and lParam
-
controls
-
button
-
editor
-
combo box
-
list box
-
text
-
spin
-
progress bar
-
MessageBox()
1
int MessageBox( HWND hWnd, LPCTSTR lpText, LPCTSTR lpCaption, UINT uType );
make instant message box
- hWnd : message box owner’s handle
- lpText : text inside message box
- lpCaption : tutle bar text
- uType : button type of message box
- MB_OK
- MB_OKCANCEL
- MB_YESNO
-