Changeset 792
- Timestamp:
- 12/11/2008 1:34:07 PM (5 years ago)
- Location:
- branches/eraser6/Installer/Bootstrapper
- Files:
-
- 2 edited
-
Bootstrapper.cpp (modified) (1 diff)
-
Main.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eraser6/Installer/Bootstrapper/Bootstrapper.cpp
r764 r792 142 142 //Since we can allocate as much as we want to allocate, take a decent amount 143 143 //of memory and stop. 144 size = std::min(1048576u * 4, size);144 size = std::min(1048576u, size); 145 145 static char* dstBuffer = NULL; 146 146 if (dstBuffer) -
branches/eraser6/Installer/Bootstrapper/Main.cpp
r764 r792 265 265 SetWindowFont(hWndCancelBtn); 266 266 267 SendMessage(hWndProgressBar, PBM_SETRANGE , 0, MAKELPARAM(0, 1000));267 SendMessage(hWndProgressBar, PBM_SETRANGE32, 0, 1000); 268 268 SubclassWindow(*this, hWndCancelBtn, WndProc); 269 269 SubclassWindow(*this, hWndPanel, WndProc); … … 344 344 void MainWindow::SetProgress(float progress) 345 345 { 346 SetWindowLongPtr(hWndProgressBar, GWL_STYLE, 347 GetWindowLongPtr(hWndProgressBar, GWL_STYLE) & (~PBS_MARQUEE)); 346 LONG_PTR pbStyle = GetWindowLongPtr(hWndProgressBar, GWL_STYLE); 347 if (pbStyle & PBS_MARQUEE) 348 SetWindowLongPtr(hWndProgressBar, GWL_STYLE, pbStyle & (~PBS_MARQUEE)); 348 349 SendMessage(hWndProgressBar, PBM_SETPOS, (int)(progress * 1000), 0); 349 350 }
Note: See TracChangeset
for help on using the changeset viewer.
