1

I need to disable maximize for my wxWidgets program. What code should I add to my frame in order to do this?

Jessie
  • 363
  • 2
  • 6
  • 20
  • possible duplicate of [Is it possible to hide/delete maximize button in wxWidgets C++?](http://stackoverflow.com/questions/25179460/is-it-possible-to-hide-delete-maximize-button-in-wxwidgets-c) – Lion King Oct 11 '14 at 13:48

1 Answers1

0

Derived your class like following :

TestFrame::TestFrame(wxWindow* parent)
  : wxFrame(parent, wxID_ANY, main_frame_title_str, wxDefaultPosition, wxDefaultSize, wxSYSTEM_MENU | wxRESIZE_BORDER | wxMINIMIZE_BOX | wxCLOSE_BOX | wxCAPTION | wxCLIP_CHILDREN)

Then you disable maximize.

Lion King
  • 32,851
  • 25
  • 81
  • 143
wshcdr
  • 935
  • 2
  • 12
  • 27