|
// *********************************************************
// メインメッセージ処理
// *********************************************************
LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
{
switch( message ) {
case WM_CREATE:
InitWndProc( hWnd );
DialogBox(
hInst,
(LPCTSTR)IDD_DIALOG_01,
hWnd,
(DLGPROC)Dialog_01
);
return -1;
case WM_DESTROY:
EndWndProc( hWnd );
PostQuitMessage( 0 );
break;
case LBOX_ESCAPE:
bEsc = true;
break;
default:
return DefWindowProc( hWnd, message, wParam, lParam );
}
return 0;
}
| |