Feature Requests item #1481844, was opened at 2006-05-04 23:48
Message generated for change (Comment added) made by mhammond
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: Closed
>Resolution: Fixed
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: Mark Hammond (mhammond)
Date: 2006-07-12 22:35
Message:
Logged In: YES
user_id=14198
Thanks Roger! This should be in the soon-to-be-release
pywin32-209.
----------------------------------------------------------------------
Comment By: Roger Upole (rupole)
Date: 2006-05-26 13:36
Message:
Logged In: YES
user_id=771074
Just checked in the new functions in win32api, with a few
changes. They take keyword args now, and the
DISPLAY_DEVICE type is exported by win32api itself rather
than pywintypes.
Roger
----------------------------------------------------------------------
Comment By: Roger Upole (rupole)
Date: 2006-05-13 22:49
Message:
Logged In: YES
user_id=771074
I've started integrating this. Changes to win32con.py and
PyDEVMODE have been committed, but checkin messages are
still broken. However, it looks like viewcvs is almost
real-time now.
The issue with the longs is actually a python bug. The
code in structmember.c insists that you give it an int, but
at the very least it could give a better error msg.
Probably a holdover from the whole int/long unification
thing.
Mark, would you rather have the new PyDISPLAY_DEVICE just
in win32api itself, to avoid the problem where sometimes an
older pywintypes is still in use by accident ? Of course,
it should be less of a problem now that everything is
version-stamped.
Roger
----------------------------------------------------------------------
Comment By: wrstl prmpft (wrstlprmpft)
Date: 2006-05-11 20: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
|