This commit is contained in:
Glenn Maynard
2005-02-07 08:26:07 +00:00
parent fb0aa0f465
commit bf4299dd2e
@@ -74,14 +74,14 @@ LoadingWindow_Win32::LoadingWindow_Win32()
{ {
hwnd = CreateDialog(handle.Get(), MAKEINTRESOURCE(IDD_LOADING_DIALOG), NULL, WndProc); hwnd = CreateDialog(handle.Get(), MAKEINTRESOURCE(IDD_LOADING_DIALOG), NULL, WndProc);
for( unsigned i = 0; i < 3; ++i ) for( unsigned i = 0; i < 3; ++i )
text[i] = "XXX"; /* always set on first call */ text[i] = "ABC"; /* always set on first call */
SetText("Initializing hardware..."); SetText("Initializing hardware...");
Paint(); Paint();
} }
LoadingWindow_Win32::~LoadingWindow_Win32() LoadingWindow_Win32::~LoadingWindow_Win32()
{ {
if(hwnd) if( hwnd )
DestroyWindow( hwnd ); DestroyWindow( hwnd );
} }
@@ -92,7 +92,8 @@ void LoadingWindow_Win32::Paint()
/* Process all queued messages since the last paint. This allows the window to /* Process all queued messages since the last paint. This allows the window to
* come back if it loses focus during load. */ * come back if it loses focus during load. */
MSG msg; MSG msg;
while( PeekMessage( &msg, hwnd, 0, 0, PM_NOREMOVE ) ) { while( PeekMessage( &msg, hwnd, 0, 0, PM_NOREMOVE ) )
{
GetMessage(&msg, hwnd, 0, 0 ); GetMessage(&msg, hwnd, 0, 0 );
DispatchMessage( &msg ); DispatchMessage( &msg );
} }