win32gui.GetWindowPlacement showCmd not working
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
win32gui.GetWindowPlacement returns for a "Command Prompt" window (not tested other window types)
(0, 1, (-1, -1), (-1, -1), (125, 125, 802, 467))
SetWindowPlacement hides the window OK, so also does ShowWindow. GetWindowPlacement returns 1 for showCmd regardless of the window state.
I checked the code and the win32gui module is returning what the API returns to us. Also, it works fine with pythonwin:
>>> import win32gui
>>> win32gui.GetWindowPlacement(win32ui.GetMainFrame().GetSafeHwnd())
I guess it is just related to command-prompts, but either way, I'm convinced there is no pywin32 bug here.