Motherboard Forums


Reply
Thread Tools Display Modes

rotate display 90°

 
 





















Mads
Guest
Posts: n/a

 
      09-01-2003, 07:24 AM


Help !!

I want to rotate the display 90°, I wrote these few lines below but nothing
happends running it under XP.
Anyone have any ideas ???

{

LPCTSTR lpszDeviceName = NULL; // name of display device

DEVMODE DevMode; // graphics mode

HWND hwnd = NULL; // not used; must be NULL

DWORD dwflags = 0; // graphics mode options

LPVOID lParam = NULL; // video parameters (or NULL)


DISPLAY_DEVICE DisplayDevice;

DisplayDevice.cb = sizeof(DISPLAY_DEVICE);

DWORD iDevNum = 0;

DWORD dwFlags = 0;



EnumDisplayDevices(NULL,iDevNum,&DisplayDevice, dwFlags);

DevMode.dmSize = sizeof(DEVMODE);


EnumDisplaySettings(DisplayDevice.DeviceName, ENUM_CURRENT_SETTINGS,
&DevMode);


dwFlags = 0;

DevMode.dmPelsHeight = 640;

DevMode.dmPelsWidth = 480;

DevMode.dmBitsPerPel = 16;

DevMode.dmDisplayOrientation = DMDO_90;

ChangeDisplaySettingsEx(DisplayDevice.DeviceName,& DevMode, hwnd, dwflags,
lParam);


}


 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Vostro 1500 display memory on last legs? S.Lewis Dell 0 03-10-2009 12:33 PM
How do I make a IBM POS VFD Customer Display work? - Help Anybody! Robert Wells IBM 0 06-22-2008 07:54 PM
Dell Presicion M65 Dual display problem Niko Dell 1 09-18-2007 08:18 PM
OT: Annoying Popup Display Journey Dell 6 04-13-2007 10:45 PM
Radeon X1300 Display not visible after HDTV source switch or power cycle Jim Lawson Dell 3 03-11-2007 05:24 PM


All times are GMT. The time now is 08:46 AM.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43