cleanup
This commit is contained in:
@@ -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());
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user