[pywin32-bugs] [ pywin32-Bugs-3577889 ] win32gui.GetWindowPlacement showCmd not working
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: SourceForge.net <no...@so...> - 2012-10-18 04:59:17
|
Bugs item #3577889, was opened at 2012-10-17 12:11 Message generated for change (Comment added) made by mhammond You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=3577889&group_id=78018 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: win32 Group: None >Status: Closed >Resolution: Invalid Priority: 5 Private: No Submitted By: Andrew Challen (arevelation) Assigned to: Nobody/Anonymous (nobody) Summary: win32gui.GetWindowPlacement showCmd not working Initial Comment: 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. ---------------------------------------------------------------------- >Comment By: Mark Hammond (mhammond) Date: 2012-10-17 21:59 Message: 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. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=3577889&group_id=78018 |