Click to Rate and Give Feedback
MSDN
MSDN Library

  Switch on low bandwidth view
ChangeDisplaySettingsEx

This content has moved to another location. See ChangeDisplaySettingsEx for the latest version.

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Detach information incorrect      TheBlindGuardian   |   Edit   |   Show History

If you follow the spec, detaching a display doesn't work:

Setting the position flag and the width and height to zero doesn't make any sense (and it doesn't work if you try).

To detach a display, you need to set the dmFields to DM_POSITION | DM_PELSWIDTH | DM_PELSHEIGHT, and set dmPelsWidth, dmPelsHeight, dmPosition.x and dmPosition.y to 0.

Tags What's this?: Add a tag
Flag as ContentBug
Re: Detach information incorrect      Doug Patterson   |   Edit   |   Show History

I also found that the spec was incorrect, but I didn't need to set dmPosition.x or dmPosition.y to 0. It was enough to use dmFields = DM_POSITION | DM_PELSWIDTH | DM_PELSHEIGHT and dmPelsWidth = dmPelsHeight = 0.

Tags What's this?: Add a tag
Flag as ContentBug
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker