If the window was previously visible, the return value is nonzero. If the window was previously hidden, the return value is zero.
| 50 | // If the window was previously visible, the return value is nonzero. |
| 51 | // If the window was previously hidden, the return value is zero. |
| 52 | bool apiShowWindow(HWND ahWnd, int anCmdShow) |
| 53 | { |
| 54 | #ifdef _DEBUG |
| 55 | wchar_t szLastFore[1024]; getWindowInfo(GetForegroundWindow(), szLastFore); |
| 56 | wchar_t szWnd[1024]; getWindowInfo(ahWnd, szWnd); |
| 57 | #endif |
| 58 | |
| 59 | bool lbRc = ::ShowWindow(ahWnd, anCmdShow) ? true : false; |
| 60 | |
| 61 | return lbRc; |
| 62 | } |
| 63 | |
| 64 | bool apiShowWindowAsync(HWND ahWnd, int anCmdShow) |
| 65 | { |
no test coverage detected