Re: Rotate Screen

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



hi

I had also once did programs regarding the screen orientaion....
Your code works well in my device [ i-mate K-Jam ] works on windows
mobile 5.0..
....and...
ChangeDisplaySettingsEx() will work on Windows CE .NET 4.0 and later.

To make your changes permanent store them in registry. There are two
values in registry under HKEY_LOCAL_MACHINE\System\GDI\Rotation key
where the system takes its orientation mode on startup:
-> Angle - DWORD value holding rotation angle in degrees. Valid values
are 0, 90, 180, 270.
-> LandscapeMode - DWORD value holding flag of landscape mode. Valid
values: 0 (portrait mode) and 1 (landscape mode).

Note that changes made using such calls are not persistent, after
soft-reset display mode will return to the previous state.

.



Relevant Pages

  • Re Rotate Screen
    ... but I guess I don't have a proper windows mobile version. ... To make your changes permanent store them in registry. ... -> Angle - DWORD value holding rotation angle in degrees. ... -> LandscapeMode - DWORD value holding flag of landscape mode. ...
    (microsoft.public.pocketpc.developer)
  • Re: Modifying the Registry for NTP Access(Authoritative)--Doesnt Look Right
    ... It's a registry check so that it's not hacked. ... A DWORD should present you a dialog with an edit field and two radio ... In the Edit DWORD Value dialog box, under Base, click Decimal. ... Binary values present you with a hex editor and if you've not used one ...
    (microsoft.public.windowsxp.general)
  • Re: Regarding Win CE devce Driver
    ... beitman AT applieddata DOT net ... look at the registry entries that you've made to load the driver. ... DWORD ul_reason_for_call, ...
    (microsoft.public.windowsce.platbuilder)
  • Re: default email client is not properly installed
    ... (If that DWORD is not present, don't create it, and don't alter any other DWORD values.) ... Did you just install IE7? ... operation because the default email client is not properly installed". ... and I also checked the registry to see if I needed to add a data string to ...
    (microsoft.public.windows.inetexplorer.ie6_outlookexpress)
  • Re: Reading names of comports [COM1, COM2 etc]
    ... There might be also the possibility that a commport exists, but is not in the registry. ... if Reg.GetDataType= rdString then ... Driver, PortName: String; ... dwOSVersionInfoSize: DWORD; ...
    (alt.comp.lang.borland-delphi)