diff options
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/burn/TestData/Manual/BafThmutilTesting/BafThmUtilTesting.cpp | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/src/test/burn/TestData/Manual/BafThmutilTesting/BafThmUtilTesting.cpp b/src/test/burn/TestData/Manual/BafThmutilTesting/BafThmUtilTesting.cpp index e5ff9131..b502285f 100644 --- a/src/test/burn/TestData/Manual/BafThmutilTesting/BafThmUtilTesting.cpp +++ b/src/test/burn/TestData/Manual/BafThmutilTesting/BafThmUtilTesting.cpp | |||
@@ -130,30 +130,24 @@ private: | |||
130 | HRESULT CreateTestingWindow() | 130 | HRESULT CreateTestingWindow() |
131 | { | 131 | { |
132 | HRESULT hr = S_OK; | 132 | HRESULT hr = S_OK; |
133 | HICON hIcon = reinterpret_cast<HICON>(m_pBafTheme->hIcon); | ||
134 | WNDCLASSW wc = { }; | 133 | WNDCLASSW wc = { }; |
135 | int x = CW_USEDEFAULT; | 134 | int x = CW_USEDEFAULT; |
136 | int y = CW_USEDEFAULT; | 135 | int y = CW_USEDEFAULT; |
137 | POINT ptCursor = { }; | 136 | POINT ptCursor = { }; |
138 | 137 | ||
138 | ThemeInitializeWindowClass(m_pBafTheme, &wc, CBafThmUtilTesting::TestingWndProc, m_hModule, BAFTHMUTILTESTING_WINDOW_CLASS); | ||
139 | |||
139 | // If the theme did not provide an icon, try using the icon from the bundle engine. | 140 | // If the theme did not provide an icon, try using the icon from the bundle engine. |
140 | if (!hIcon) | 141 | if (!wc.hIcon) |
141 | { | 142 | { |
142 | HMODULE hBootstrapperEngine = ::GetModuleHandleW(NULL); | 143 | HMODULE hBootstrapperEngine = ::GetModuleHandleW(NULL); |
143 | if (hBootstrapperEngine) | 144 | if (hBootstrapperEngine) |
144 | { | 145 | { |
145 | hIcon = ::LoadIconW(hBootstrapperEngine, MAKEINTRESOURCEW(1)); | 146 | wc.hIcon = ::LoadIconW(hBootstrapperEngine, MAKEINTRESOURCEW(1)); |
146 | } | 147 | } |
147 | } | 148 | } |
148 | 149 | ||
149 | // Register the window class and create the window. | 150 | // Register the window class and create the window. |
150 | wc.lpfnWndProc = CBafThmUtilTesting::TestingWndProc; | ||
151 | wc.hInstance = m_hModule; | ||
152 | wc.hIcon = hIcon; | ||
153 | wc.hCursor = ::LoadCursorW(NULL, (LPCWSTR)IDC_ARROW); | ||
154 | wc.hbrBackground = m_pBafTheme->rgFonts[m_pBafTheme->dwFontId].hBackground; | ||
155 | wc.lpszMenuName = NULL; | ||
156 | wc.lpszClassName = BAFTHMUTILTESTING_WINDOW_CLASS; | ||
157 | if (!::RegisterClassW(&wc)) | 151 | if (!::RegisterClassW(&wc)) |
158 | { | 152 | { |
159 | ExitWithLastError(hr, "Failed to register window."); | 153 | ExitWithLastError(hr, "Failed to register window."); |