wc.lpszClassName= appName;
wc.hInstance
wc.hIcon
wc.hCursor
wc.hbrBackground= (HBRUSH)COLOR_WINDOW + 1;
wc.style
wc.lpfnWndProc
wc.cbClsExtra = 0;
wc.cbWndExtra = 0;
if( !RegisterClass( &wc ) )
return 0;
}
//
// Attemp to create the main window
//
theWnd =CreateWindowEx
(
WS_EX_TOPMOST, appName, appTitle, WS_OVERLAPPED | WS_SYSMENU,
CW_USEDEFAULT, CW_USEDEFAULT, 375, 225,NULL, NULL,hInst, NULL
);
//
// If the window was not created then quit
//
if ( !theWnd )
{
return 0;
}
//
// Show the main window
//
ShowWindow( theWnd, cmdShow );
= hInst;
= NULL;
= NULL;
= 0;
= WndProc;
5 - 21