diff options
| author | Sean Hall <r.sean.hall@gmail.com> | 2021-10-31 14:20:44 -0500 |
|---|---|---|
| committer | Sean Hall <r.sean.hall@gmail.com> | 2021-11-01 16:34:09 -0500 |
| commit | 7e60078d4a7fe748a39c135def9e84a2421ab474 (patch) | |
| tree | 51dbe5067ca9596f99107719734c4946e4c080b4 /src/test/burn/TestData/Manual/BafThmutilTesting/BafThmUtilTesting.cpp | |
| parent | c092722a147940532b08f62403e182ef279f2c74 (diff) | |
| download | wix-7e60078d4a7fe748a39c135def9e84a2421ab474.tar.gz wix-7e60078d4a7fe748a39c135def9e84a2421ab474.tar.bz2 wix-7e60078d4a7fe748a39c135def9e84a2421ab474.zip | |
Avoid using control ids inside of thmutil.
Diffstat (limited to 'src/test/burn/TestData/Manual/BafThmutilTesting/BafThmUtilTesting.cpp')
| -rw-r--r-- | src/test/burn/TestData/Manual/BafThmutilTesting/BafThmUtilTesting.cpp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/test/burn/TestData/Manual/BafThmutilTesting/BafThmUtilTesting.cpp b/src/test/burn/TestData/Manual/BafThmutilTesting/BafThmUtilTesting.cpp index b502285f..6c37fbd8 100644 --- a/src/test/burn/TestData/Manual/BafThmutilTesting/BafThmUtilTesting.cpp +++ b/src/test/burn/TestData/Manual/BafThmutilTesting/BafThmUtilTesting.cpp | |||
| @@ -365,18 +365,23 @@ private: | |||
| 365 | 365 | ||
| 366 | void UpdateProgressBarProgress() | 366 | void UpdateProgressBarProgress() |
| 367 | { | 367 | { |
| 368 | const THEME_CONTROL* pControlProgressbarImage = NULL; | ||
| 369 | const THEME_CONTROL* pControlProgressbarStandard = NULL; | ||
| 368 | static DWORD dwProgress = 0; | 370 | static DWORD dwProgress = 0; |
| 369 | DWORD dwCurrent = dwProgress < 100 ? dwProgress : 200 - dwProgress; | 371 | DWORD dwCurrent = dwProgress < 100 ? dwProgress : 200 - dwProgress; |
| 370 | 372 | ||
| 373 | ThemeControlExistsById(m_pBafTheme, BAFTHMUTILTESTING_CONTROL_PROGRESSBAR_IMAGE, &pControlProgressbarImage); | ||
| 374 | ThemeControlExistsById(m_pBafTheme, BAFTHMUTILTESTING_CONTROL_PROGRESSBAR_STANDARD, &pControlProgressbarStandard); | ||
| 375 | |||
| 371 | if (0 == dwProgress || 100 == dwProgress) | 376 | if (0 == dwProgress || 100 == dwProgress) |
| 372 | { | 377 | { |
| 373 | ThemeSetProgressControlColor(m_pBafTheme, BAFTHMUTILTESTING_CONTROL_PROGRESSBAR_IMAGE, 100 == dwProgress ? 1 : 0); | 378 | ThemeSetProgressControlColor(pControlProgressbarImage, 100 == dwProgress ? 1 : 0); |
| 374 | } | 379 | } |
| 375 | 380 | ||
| 376 | dwProgress = (dwProgress + 10) % 200; | 381 | dwProgress = (dwProgress + 10) % 200; |
| 377 | 382 | ||
| 378 | ThemeSetProgressControl(m_pBafTheme, BAFTHMUTILTESTING_CONTROL_PROGRESSBAR_IMAGE, dwCurrent); | 383 | ThemeSetProgressControl(pControlProgressbarImage, dwCurrent); |
| 379 | ThemeSetProgressControl(m_pBafTheme, BAFTHMUTILTESTING_CONTROL_PROGRESSBAR_STANDARD, dwCurrent); | 384 | ThemeSetProgressControl(pControlProgressbarStandard, dwCurrent); |
| 380 | } | 385 | } |
| 381 | 386 | ||
| 382 | public: | 387 | public: |
