/* InitInst.c * * Initialize Instance * - Creates our Window and makes it visible * */ #define STRICT #include BOOL InitInstance( HINSTANCE hinstCurrent, int nCmdShow ) { HWND hWnd; char szMyClassName[] = "SimpleClass"; char szMyTitle[] = "Simple Window"; hWnd = CreateWindow ( szMyClassName, szMyTitle, WS_OVERLAPPEDWINDOW, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, NULL, NULL, hinstCurrent, NULL ); if( hWnd == NULL ) return FALSE; ShowWindow( hWnd, nCmdShow ); UpdateWindow( hWnd ); return TRUE; }