... |
... |
@@ -404,13 +404,13 @@ DWORD WINAPI Window_ThreadProc( LPVOID lpParameter ) |
404
|
404
|
/* int nWidth; */ WndRect.right - WndRect.left,
|
405
|
405
|
/* int nHeight; */ WndRect.bottom - WndRect.top,
|
406
|
406
|
/* HWND hwndParent; */ HWND_DESKTOP,
|
407
|
|
- /* HMENU hmenu; */ 0,
|
|
407
|
+ /* HMENU hmenu; */ NULL,
|
408
|
408
|
/* HINSTANCE hinst; */ GetModuleHandle( NULL ),
|
409
|
409
|
/* void FAR* lpvParam; */ surface );
|
410
|
410
|
|
411
|
411
|
PostThreadMessage( surface->host, WM_STATUS, (WPARAM)surface->window, 0 );
|
412
|
412
|
|
413
|
|
- if ( surface->window == 0 )
|
|
413
|
+ if ( surface->window == NULL )
|
414
|
414
|
return -1;
|
415
|
415
|
|
416
|
416
|
ShowWindow( surface->window, SW_SHOWNORMAL );
|
... |
... |
@@ -684,22 +684,16 @@ LRESULT CALLBACK Message_Process( HWND handle, UINT mess, |
684
|
684
|
/* WNDPROC lpfnWndProc */ Message_Process,
|
685
|
685
|
/* int cbClsExtra */ 0,
|
686
|
686
|
/* int cbWndExtra */ 0,
|
687
|
|
- /* HANDLE hInstance */ 0,
|
688
|
|
- /* HICON hIcon */ 0,
|
689
|
|
- /* HCURSOR hCursor */ 0,
|
690
|
|
- /* HBRUSH hbrBackground*/ 0,
|
|
687
|
+ /* HANDLE hInstance */ GetModuleHandle( NULL ),
|
|
688
|
+ /* HICON hIcon */ LoadIcon( NULL, IDI_APPLICATION),
|
|
689
|
+ /* HCURSOR hCursor */ LoadCursor( NULL, IDC_ARROW),
|
|
690
|
+ /* HBRUSH hbrBackground*/ GetStockObject( LTGRAY_BRUSH ),
|
691
|
691
|
/* LPCTSTR lpszMenuName */ NULL,
|
692
|
692
|
/* LPCTSTR lpszClassName*/ "FreeTypeTestGraphicDriver"
|
693
|
693
|
};
|
694
|
694
|
|
695
|
695
|
/* register window class */
|
696
|
|
-
|
697
|
|
- ourClass.hInstance = GetModuleHandle( NULL );
|
698
|
|
- ourClass.hIcon = LoadIcon(0, IDI_APPLICATION);
|
699
|
|
- ourClass.hCursor = LoadCursor(0, IDC_ARROW);
|
700
|
|
- ourClass.hbrBackground= GetStockObject( LTGRAY_BRUSH );
|
701
|
|
-
|
702
|
|
- if ( RegisterClass(&ourClass) == 0 )
|
|
696
|
+ if ( RegisterClass( &ourClass ) == 0 )
|
703
|
697
|
return -1;
|
704
|
698
|
|
705
|
699
|
return 0;
|