/* InitAppl.c * * Initialize Application * - Register the Class of our Window * */ #define STRICT #include LRESULT CALLBACK MainWndProc( HWND, UINT, WPARAM, LPARAM ); BOOL InitApplication( HINSTANCE hinstCurrent ) { WNDCLASS wc; char szMyClassName[] = "SimpleClass"; wc.style = NULL; wc.lpfnWndProc = MainWndProc; wc.cbClsExtra = 0; wc.cbWndExtra = 0; wc.hInstance = hinstCurrent; wc.hIcon = LoadIcon( NULL, IDI_APPLICATION ); wc.hCursor = LoadCursor( NULL, IDC_ARROW ); wc.hbrBackground = (HBRUSH)(COLOR_WINDOW + 1); wc.lpszMenuName = (LPCSTR)NULL; wc.lpszClassName = szMyClassName; return( RegisterClass( &wc ) ); }