int WINAPI WinMain(
HINSTANCE hInstance, // handle to current instance
HINSTANCE hPrevInstance, // handle to previous instance
LPSTR lpCmdLine, // pointer to command line
int nCmdShow // show state of window
)
// WM_COMMAND 메시지 핸들러
void OnDlgCommand(HWND hWnd, int id, HWND hWndCtl, UINT codeNotify)
{
// {
// 다일얼로그 박스에 확인 버튼을 누르면
if (id == IDOK)
{
EndDialog(hWnd, IDOK);
}
// 취소 버튼을 누르면
else if (id == IDCANCEL)
{
EndDialog(hWnd, IDCANCEL);
}
// }
}
common controls // 윈도우 95
Header
List-view
Rebar
Toolbar
ToolTip
Trackbar
SysTreeView32 // Tree-view, 트리
msctls_trackbar32 // 슬라이더
스핀
애니메이션
msctls_pregress // progress bar, 게이지
프로퍼티 페이지
owner draw
available for all controls.
Custom draw
available only for the common controls
not available for the standard (and older) Windows controls