Hello,
I am in way over my head, and am hoping anyone here can help.
I am working with an application that is running on Windows Mobile OS, version 5 and/or 6, which is written in Embedded C++. The problem is that controls in the app get all messed up and moved around when the user does something to switch the display orientation, such as opening the device's keyboard.
At this point, I have been looking at this forever and am getting a bit desperate. So, I guess I am now hoping for a quick and dirty solution to this, if one even exists. I'd like to try to effectively lock the device into portrait display, if possible, or perhaps find a way to detect an orientation switch so I can consistently force the display back to portrait mode.
I've been reading article after article (see partial list at bottom of post), but just haven't been able to work this out.
Is there some sort of event that fires that I can grab onto, and then apply code (yet to be worked out) to reset orientation?
Here's a list of some of the articles I've been trying to make sense of:
Changing Screen Orientation Programmatically http://msdn.microsoft.com/en-us/library/ms812499.aspx
ChangeDisplaySettingsEx Function http://msdn.microsoft.com/en-us/library/dd183413(VS.85).aspx
ChangeDisplaySettingsEx http://msdn.microsoft.com/en-us/library/aa923082.aspx
"Adapt Your App" http://social.msdn.microsoft.com/Forums/en-US/vssmartdevicesnative/thread/6656f82e-6de8-4fc7-8e17-61dbe6bc5f77
Getting Started With Windows Mobile Application Development
http://www.eetimes.com/design/other/4006712/Getting-Started-With-Windows-Mobile-Application-DevelopmentHow Applications Detect and Respond to Screen Rotation
http://msdn.microsoft.com/en-us/library/bb158688.aspxDEVMODE http://msdn.microsoft.com/en-us/library/dd183565(VS.85).aspx