Click here to Skip to main content
15,902,840 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: validating emailid Pin
Jagadeesh VN6-Sep-03 2:20
Jagadeesh VN6-Sep-03 2:20 
GeneralStrange database problem on WinXp Pin
-Dy5-Sep-03 1:46
-Dy5-Sep-03 1:46 
GeneralEntryID for Exchange Messages Pin
IGH5-Sep-03 1:40
IGH5-Sep-03 1:40 
GeneralEfficiency with reading 60 sockets Pin
EiSl5-Sep-03 1:08
EiSl5-Sep-03 1:08 
GeneralRe: Efficiency with reading 60 sockets Pin
valikac5-Sep-03 5:23
valikac5-Sep-03 5:23 
GeneralDesign question Pin
Jerome Conus5-Sep-03 0:50
Jerome Conus5-Sep-03 0:50 
GeneralRe: Design question Pin
Jagadeesh VN5-Sep-03 1:13
Jagadeesh VN5-Sep-03 1:13 
Generalrotate display 90° Pin
mads1235-Sep-03 0:48
mads1235-Sep-03 0:48 
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);


}

GeneralTreeCtrl Pin
Member 4242595-Sep-03 0:00
Member 4242595-Sep-03 0:00 
GeneralRe: TreeCtrl Pin
KaЯl5-Sep-03 2:28
KaЯl5-Sep-03 2:28 
GeneralRe: TreeCtrl Pin
Member 4242595-Sep-03 3:06
Member 4242595-Sep-03 3:06 
GeneralRe: TreeCtrl Pin
KaЯl5-Sep-03 3:37
KaЯl5-Sep-03 3:37 
GeneralInternationalisation: Russian Pin
Phil J Pearson4-Sep-03 23:30
Phil J Pearson4-Sep-03 23:30 
GeneralRe: Internationalisation: Russian Pin
Michael Dunn5-Sep-03 13:57
sitebuilderMichael Dunn5-Sep-03 13:57 
GeneralICQ help Pin
El'Cachubrey4-Sep-03 23:29
El'Cachubrey4-Sep-03 23:29 
GeneralRe: ICQ help Pin
Alexander M.,6-Sep-03 3:52
Alexander M.,6-Sep-03 3:52 
GeneralASCII or UNICODE Pin
hph4-Sep-03 23:13
hph4-Sep-03 23:13 
GeneralRe: ASCII or UNICODE Pin
RChin5-Sep-03 0:41
RChin5-Sep-03 0:41 
GeneralRe: ASCII or UNICODE Pin
RChin5-Sep-03 0:43
RChin5-Sep-03 0:43 
QuestionHow can I retrieve the network card number? Pin
Niedermeier4-Sep-03 23:11
Niedermeier4-Sep-03 23:11 
AnswerRe: How can I retrieve the network card number? Pin
Ph@ntom5-Sep-03 2:07
Ph@ntom5-Sep-03 2:07 
AnswerRe: How can I retrieve the network card number? Pin
David Crow5-Sep-03 3:38
David Crow5-Sep-03 3:38 
GeneralRe: How can I retrieve the network card number? Pin
Niedermeier5-Sep-03 4:26
Niedermeier5-Sep-03 4:26 
GeneralRe: How can I retrieve the network card number? Pin
David Crow5-Sep-03 4:34
David Crow5-Sep-03 4:34 
GeneralRe: How can I retrieve the network card number? Pin
Niedermeier5-Sep-03 4:41
Niedermeier5-Sep-03 4:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.