Gary
Mon May 17 14:53:26 CDT 2004
Does ChangeDisplaySettingsEx work for changing the orientation?
Gary Daniels
Windows CE GDI Test
This posting is provided "AS IS" with no warranties, and confers no rights.
You assume all risk for your use. © 2002 Microsoft Corporation. All rights
reserved.
"Yannick Chamming's [eMVP]" <ychammings_nospam@adeset.com> wrote in message
news:e%237dq9sLEHA.556@tk2msftngp13.phx.gbl...
> Your code will work only if the Display driver supports rotation.
> Concerning the app you downloaded, I don't know how it performs the
rotation
>
> --
> ----------------------------------------------------------------
> Yannick Chamming's (eMVP)
> ADESET
> Windows Embedded Manager
> ychammings AT adeset DOT com>
>
http://www.adeset.com
> Tél : +33 (0)4.72.18.57.77
> Fax : +33 (0)4.72.18.57.78
> ----------------------------------------------------------------
>
> "John" <j_smth_at_nospam.com> a écrit dans le message de
> news:%23ATTGssLEHA.2736@TK2MSFTNGP11.phx.gbl...
> > I'm trying to roatate the screen with the following code, however the
> return
> > value is always 0 which indicates that screen rotation is not supported.
> >
> > However I installed a program that rotates the screen no problem.
> >
> > So the question is: How can I do it?
> >
> > Sample code would be the most appreciated.
> >
> >
> > HDC hDC = ::GetDC(NULL);
> >
> > int intRet = DRVESC_SETSCREENROTATION;
> >
> > int code = ::ExtEscape(hDC, QUERYESCSUPPORT, sizeof(int), (LPCSTR)&rot,
> 0,
> > NULL);
> >
> > --
> >
> >
>
>