RE: Rotating the display using ChangeDisplaySettingsEx
- From: MikaelV <MikaelV@xxxxxxxxxxxxxxxx>
- Date: Wed, 28 May 2008 06:58:00 -0700
Hi Jeffrey,
Thanks for your reply.
I have been unsure whether it was necessary to set the resolution when I
rotate or not. But I have tried doing it, and it did not help.
I have sent you a C++ solution via email that that sets both resolution and
orientation. Running it gives the DISP_CHANGE_BADMODE return when I run it on
my XP Professional/NVIDIA system.
I have tested on a PC with Intel 915 integrated graphics card (this is
actually the target system that our application will run on). It was using XP
Professional and Intel's IEGD 7.0 (embedded) graphics driver. On this system
I get identical results.
Upgrading to IEGD 8.0 drivers did not help.
Running on a PC with XP Professional, Intel 965 chipset and Intels mobile
driver, the program succeds!
So, are NVIDIAs and Intels IEGD drivers not supporting
ChangeDisplaySettingsEx, while Intels mobile driver is?
Is there a workaround? Any alternative API I can use?
I can change the rotation with no problems using NVIDIAs display setup
dialog and with Intels IEGD display configuration tool.
Best regards,
Mikael
""Jeffrey Tan[MSFT]"" wrote:
Hi Mikael,.
The code below looks like incomplete - there's no resolution set. If that's
really the complete code, then that's probably the cause of the failure. A
rotation is also a resolution change (e.g. 1024x768 -> 768x1024) and you
have to specify the new resolution for it to be accepted since a mode of
1024x768x90 degrees is not a valid mode.
Have you tried your code on other machines? I find some other cases
regarding ChangeDisplaySettingsEx+DM_DISPLAYORIENTATION which are display
driver dependent. So, if your code runs well on other machines while fails
on this specific machine, it is very likely a driver problem.
If adding the valid resolution setting still did not resolve this problem,
can you provide a simple sample project for me to reproduce this problem?
Finally, based on my research on my colleague's Vista Intel display card
Dell machine, the display configuration application igfxcfg.exe internally
communicates with igfxdev.exe which also calls ChangeDisplaySettingsExA API
with DM_DISPLAYORIENTATION and other flags to rotate the screen.
I will wait for your further feedback, thanks.
Best regards,
Jeffrey Tan
Microsoft Online Community Support
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
msdnmg@xxxxxxxxxxxxxx
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
- References:
- RE: Rotating the display using ChangeDisplaySettingsEx
- From: "Jeffrey Tan[MSFT]"
- RE: Rotating the display using ChangeDisplaySettingsEx
- Prev by Date: Pan and zoom images
- Next by Date: RE: Rotating the display using ChangeDisplaySettingsEx
- Previous by thread: RE: Rotating the display using ChangeDisplaySettingsEx
- Next by thread: RE: Rotating the display using ChangeDisplaySettingsEx
- Index(es):
Relevant Pages
|