Changeset 546 for branches/eraser6/Installer/Bootstrapper/Main.cpp
- Timestamp:
- 11/13/2008 3:08:07 PM (4 years ago)
- File:
-
- 1 edited
-
branches/eraser6/Installer/Bootstrapper/Main.cpp (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eraser6/Installer/Bootstrapper/Main.cpp
r544 r546 134 134 //Create the parent window and the child controls 135 135 ::hInstance = hInstance; 136 Application::Get(); 136 Application& app = Application::Get(); 137 MainWindow& mainWin = app.GetTopWindow(); 137 138 138 139 //OK, now we do the hard work. Create a folder to place our payload into … … 148 149 TempDir dir(tempDir); 149 150 ExtractTempFiles(tempDir); 151 mainWin.EnableCancellation(false); 150 152 151 153 //Install the .NET framework … … 154 156 155 157 //Then install Eraser! 158 mainWin.Show(false); 156 159 InstallEraser(tempDir); 157 160 } … … 267 270 268 271 //Create the window 269 hWnd = CreateWindowW(szWindowClass, L"Eraser Setup", WS_CAPTION | WS_SYSMENU,272 hWnd = CreateWindowW(szWindowClass, L"Eraser Setup", WS_CAPTION, 270 273 CW_USEDEFAULT, 0, 300, 130, NULL, NULL, hInstance, NULL); 271 274 … … 306 309 } 307 310 311 void MainWindow::Show(bool show) 312 { 313 ShowWindow(hWnd, show ? SW_SHOW : SW_HIDE); 314 } 315 316 void MainWindow::EnableCancellation(bool enable) 317 { 318 EnableWindow(hWndCancelBtn, enable); 319 } 320 308 321 void MainWindow::SetProgress(float progress) 309 322 {
Note: See TracChangeset
for help on using the changeset viewer.
