Is there a way to change screen resolution / Pocket PC

Do you have a typical platform dependent issue you're battling with ? Ask it here. Make sure you mention your platform, compiler, and wxWidgets version.
Post Reply
User avatar
hardmard
In need of some credit
In need of some credit
Posts: 7
Joined: Mon Jul 18, 2005 8:39 am
Location: Poland
Contact:

Is there a way to change screen resolution / Pocket PC

Post by hardmard » Tue Jul 19, 2005 9:23 pm

The wxDisplay class provides this functionality, but when the I compile the library using eVC 4.0 (with proper #define DISPLAY set to 1) it shows the error connected to lack of multimon.h file. [when I compile the library with VC++2003 for desktop windows everything works fine]
When I try download this file from VC7.1 SDK or DX SDK more errors appear.
Which multimon.h should be used when compiling the library for pocket PCs ?

User avatar
ABX
Can't get richer than this
Can't get richer than this
Posts: 810
Joined: Mon Sep 06, 2004 1:43 pm
Location: Poznan, Poland
Contact:

Re: Is there a way to change screen resolution / Pocket PC

Post by ABX » Wed Jul 20, 2005 5:51 am

hardmard wrote:The wxDisplay class provides this functionality, but when the I compile the library using eVC 4.0 (with proper #define DISPLAY set to 1) it shows the error connected to lack of multimon.h file. [when I compile the library with VC++2003 for desktop windows everything works fine]
When I try download this file from VC7.1 SDK or DX SDK more errors appear.
Which multimon.h should be used when compiling the library for pocket PCs ?
I do not think that's supported by wxWinCE port. If there is appropriate API available in WinCE then perhaps you could help us complete wxWinCE port in this area.

ABX
CVS Head, 2.8.X
wxMSW, wxWinCE, wxPalmOS, wxOS2, wxMGL, bakefile
gcc 3.2.3, bcc 5.51, dmc 8.48, ow 1.6, vc 7.1, evc 3/4, pods 1.2

upCASE
Site Admin
Site Admin
Posts: 3176
Joined: Mon Aug 30, 2004 6:55 am
Location: Germany, Cologne

Re: Is there a way to change screen resolution / Pocket PC

Post by upCASE » Wed Jul 20, 2005 6:49 am

ABX wrote: I do not think that's supported by wxWinCE port. If there is appropriate API available in WinCE then perhaps you could help us complete wxWinCE port in this area.
True, it's not supported. You can however use ChangeDisplaySettingsEx() for some of the functionality.
Hmm... Maybe it's time again to create a patch :D
OS: OpenSuSE, Ubuntu, Win XP Pro
wx: svn
Compiler: gcc 4.5.1, VC 2008, eVC 4

"If it was hard to write it should be hard to read..." - the unknown coder
"Try not! Do. Or do not. There is no try." - Yoda

User avatar
hardmard
In need of some credit
In need of some credit
Posts: 7
Joined: Mon Jul 18, 2005 8:39 am
Location: Poland
Contact:

Post by hardmard » Wed Jul 20, 2005 7:59 pm

Well, it looks like I'll have to use the native Windows function instead.
Thanks for Your help.

ABX -> unfortunately I don't have the deep knowledge of the inner structure of wxW library and so I don't find it a good idea to develop it myself... If everyone would post changes, we'd have a mess instead of the library :/

User avatar
hardmard
In need of some credit
In need of some credit
Posts: 7
Joined: Mon Jul 18, 2005 8:39 am
Location: Poland
Contact:

Re: Is there a way to change screen resolution / Pocket PC

Post by hardmard » Sat Jul 23, 2005 8:53 pm

upCASE wrote: True, it's not supported. You can however use ChangeDisplaySettingsEx() for some of the functionality.
I've tried to use this function in Windows 32 port. When I exit my application, it hangs in the 60th line of file oleutils.h :
::OleUninitialize();
Does anyone know what's going on ? Using one WinAPI function makes my application unstoppable :shock:

Post Reply