| 173 | #ifdef _WIN32 |
| 174 | static std::atomic<HWND> g_hActiveParentWindow(NULL); |
| 175 | void HelpersRegisterActiveWindow() |
| 176 | { |
| 177 | g_hActiveParentWindow.store( GetActiveWindow() ); |
| 178 | assert( g_hActiveParentWindow.load() != NULL ); |
| 179 | } |
| 180 | HWND HelpersGetActiveWindow() |
| 181 | { |
| 182 | return g_hActiveParentWindow.load(); |