| 62 | } |
| 63 | |
| 64 | bool apiShowWindowAsync(HWND ahWnd, int anCmdShow) |
| 65 | { |
| 66 | #ifdef _DEBUG |
| 67 | wchar_t szLastFore[1024]; getWindowInfo(GetForegroundWindow(), szLastFore); |
| 68 | wchar_t szWnd[1024]; getWindowInfo(ahWnd, szWnd); |
| 69 | #endif |
| 70 | |
| 71 | bool lbRc = ::ShowWindowAsync(ahWnd, anCmdShow) ? true : false; |
| 72 | |
| 73 | return lbRc; |
| 74 | } |
| 75 | |
| 76 | void getWindowInfo(HWND ahWnd, wchar_t (&rsInfo)[1024], bool bProcessName /*= false*/, LPDWORD pnPID /*= nullptr*/) |
| 77 | { |
no test coverage detected