Screen Resoulution???

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
chakkaradeepcc
Earned some good credits
Earned some good credits
Posts: 116
Joined: Mon Nov 01, 2004 6:31 pm
Location: India
Contact:

Screen Resoulution???

Post by chakkaradeepcc » Fri Dec 31, 2004 7:42 pm

Hi all,

is there any method to get Screen Resolution using wxWindows.........???...(i.e); 800x600

with regards,
C.C.Chakkaradeep

Guest

Post by Guest » Fri Dec 31, 2004 8:49 pm

Hello there,

I believe ::wxGetDisplaySize() is what you want. It returns your resolution as a wxSize object.

Edit: it needs #include <wx/gdicmn.h>

Happy New Year! :D

chakkaradeepcc
Earned some good credits
Earned some good credits
Posts: 116
Joined: Mon Nov 01, 2004 6:31 pm
Location: India
Contact:

Post by chakkaradeepcc » Sat Jan 01, 2005 12:34 pm

Hi,

::wxGetDisplaySize() is working perfect!............wxWidgets is POWERFUL!!!!............:-)

WISH U ALL A HAPPY NEW YEAR............

with regards,
C.C.Chakkaradeep

Muskelkatermann
Earned some good credits
Earned some good credits
Posts: 135
Joined: Thu Apr 28, 2005 11:36 am
Location: Gie

Different monitors

Post by Muskelkatermann » Mon May 09, 2005 11:10 am

Hi,

wxGetDisplaySize() returns the Resolution f

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

Post by upCASE » Mon May 09, 2005 11:15 am

Hi!
Starting with 2.5.x there is wxDisplay which should do want you want. It's only available on Windows I think.
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

Muskelkatermann
Earned some good credits
Earned some good credits
Posts: 135
Joined: Thu Apr 28, 2005 11:36 am
Location: Gie

Post by Muskelkatermann » Mon May 09, 2005 1:27 pm

Works fine!
Thanks a lot

eco
Filthy Rich wx Solver
Filthy Rich wx Solver
Posts: 203
Joined: Tue Aug 31, 2004 7:06 pm
Location: Behind a can of Mountain Dew
Contact:

Post by eco » Mon May 09, 2005 8:17 pm

Weird...I could have sworn I posted a reply to this thread last night...I was groggy though so maybe I just hit Preview :). All it said was check out wxDisplay but that's now covered.

Post Reply