Menu

#618 win32gui.GetWindowPlacement showCmd not working

closed-invalid
nobody
win32 (141)
5
2012-10-18
2012-10-17
No

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.

Discussion

  • Mark Hammond

    Mark Hammond - 2012-10-18

    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.

     
  • Mark Hammond

    Mark Hammond - 2012-10-18
    • status: open --> closed-invalid