how to maximize a wxFrame window????

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
JumpAround
In need of some credit
In need of some credit
Posts: 5
Joined: Fri Feb 04, 2005 8:15 am

how to maximize a wxFrame window????

Post by JumpAround » Wed Sep 14, 2005 1:57 pm

How to maximize wxFrame object by default?? When I use SetSize it is not maximized. I want to obtain similiar behaviour like after pressing the maximize icon on the frame. Is there any member function to do so?

priyank_bolia
wxWorld Domination!
wxWorld Domination!
Posts: 1339
Joined: Wed Aug 03, 2005 8:10 am
Location: BANGALORE, INDIA
Contact:

Post by priyank_bolia » Wed Sep 14, 2005 2:05 pm

By default use the

Code: Select all

wxMAXIMIZE
flag in the constructor to have a maximize window at startup, or can call

Code: Select all

Maximize();
at any time to maximize the frame window.

Post Reply