| 227 | |
| 228 | pSetWindowPos pOrigSetWindowPos = nullptr; |
| 229 | static BOOL WINAPI pNewSetWindowPos( |
| 230 | _In_ HWND hWnd, |
| 231 | _In_opt_ HWND hWndInsertAfter, |
| 232 | _In_ int X, |
| 233 | _In_ int Y, |
| 234 | _In_ int cx, |
| 235 | _In_ int cy, |
| 236 | _In_ UINT uFlags) |
| 237 | { |
| 238 | if (g_bInitVP) { |
| 239 | DLog(L"call SetWindowPos() function during initialization VP"); |
| 240 | uFlags |= SWP_ASYNCWINDOWPOS; |
| 241 | } |
| 242 | return pOrigSetWindowPos(hWnd, hWndInsertAfter, X, Y, cx, cy, uFlags); |
| 243 | } |
| 244 | |
| 245 | typedef BOOL(WINAPI* pShowWindow)( |
| 246 | _In_ HWND hWnd, |