This commit is contained in:
Glenn Maynard
2005-11-09 14:10:48 +00:00
parent 9d090cbe7d
commit 48ce4bf80c
@@ -108,7 +108,7 @@ 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] = "ABC"; /* always set on first call */ text[i] = "ABC"; /* always set on first call */
SetText("Initializing hardware..."); SetText( "Initializing hardware..." );
Paint(); Paint();
} }
@@ -148,8 +148,7 @@ void LoadingWindow_Win32::SetText( CString sText )
continue; continue;
text[i] = asMessageLines[i]; text[i] = asMessageLines[i];
SendDlgItemMessage( hwnd, msgs[i], WM_SETTEXT, 0, SendDlgItemMessage( hwnd, msgs[i], WM_SETTEXT, 0, (LPARAM)asMessageLines[i].c_str());
(LPARAM)asMessageLines[i].c_str());
} }
} }