Feature Requests item #1481844, was opened at 2006-05-04 15:48
Message generated for change (Comment added) made by wrstlprmpft
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=551957&aid=1481844&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: Open
Resolution: None
Priority: 5
Submitted By: wrstl prmpft (wrstlprmpft)
Assigned to: Nobody/Anonymous (nobody)
Summary: multi monitor, dualview, extended desktop support functions
Initial Comment:
A request for adding functions related to multiple
monitors, dualview (extended desktop), to win32api.
(see also posts on the mailing list:
http://mail.python.org/pipermail/python-win32/2006-May/
004634.html
and
http://mail.python.org/pipermail/python-win32/2006-May/
004637.html)
The needed GDI functions (WinXP only I think) are:
- ChangeDisplaySettingsEx
- EnumDisplaySettingsEx
- EnumDisplayDevices
- EnumDisplayMonitors
(see http://msdn.microsoft.com/library/default.asp?
url=/library/en-us/gdi/monitor_4zak.asp )
these would be added to win32apimodule.cpp
cheers,
stefan
----------------------------------------------------------------------
>Comment By: wrstl prmpft (wrstlprmpft)
Date: 2006-05-11 12:42
Message:
Logged In: YES
user_id=801589
I scratched my itch.
Attached is a diff and a new file: PyDISPLAY_DEVICE.cpp
I added EnumDisplayDevices and ChangeDisplaySettingsEx,
as well as the DISPLAY_DEVICE structure.
It works for me here on WinXP.
The msdn docs say that the functions are available in
Win98, interestingly for DISPLAY_DEVICE, it says that its
Win2000 only. ???
I am WinXP only here.
I added missing constants to win32con.py, I don't think
this can harm anyone.
But the cpp files might need some #if ... somewhere.
cheers,
stefan
PS:
I found that the DEVMODE structure gives Position_x and
Position_y values as longs, but when setting these
values it only accepts ints.
Why is this?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=551957&aid=1481844&group_id=78018
|