MCPcopy Create free account
hub / github.com/ConEmu/ConEmu / apiShowWindowAsync

Function apiShowWindowAsync

src/common/WUser.cpp:64–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62}
63
64bool 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
76void getWindowInfo(HWND ahWnd, wchar_t (&rsInfo)[1024], bool bProcessName /*= false*/, LPDWORD pnPID /*= nullptr*/)
77{

Callers 3

cmd_PostConMsgFunction · 0.85
cmd_SetWindowPosFunction · 0.85
EmergencyShowFunction · 0.85

Calls 1

getWindowInfoFunction · 0.85

Tested by

no test coverage detected