The function GetShellOrientation() is actually there, I just forgot to add it to the header file.
Open PocketHAL.h and add the following inside the PHAL namespace:
- Code: Select all
1 2 3 4
| #if defined(PHAL_PLATFORM_WCE) /// Get the current shell orientation Orientation GetShellOrientation(); #endif
|
| 4 lines; 3 keywds; 0 nums; 5 ops; 0 strs; 1 coms Syntactic Coloring v0.4 - Dan East |
This will work properly on all devices, including the Morotola Q and pre-WM2003 SE devices.
I've never heard of GetShellResolution(), but you can use GetSystemMetrics() with SM_CXSCREEN and SM_CYSCREEN for that.