+ main_frame->SetSizeHints( 100,100, 400,400 );
+
+ wxMenu *file_menu = new wxMenu;
+ file_menu->Append(wxID_EXIT, _T("E&xit\tAlt-Q"));
+ file_menu->Append(ID_SET_SIZE_TO_150_150, _T("Set frame size to 150,150\tF2"));
+ file_menu->Append(ID_SET_SIZE_TO_200_200, _T("Set frame size to 200,200\tF3"));
+ file_menu->Append(ID_SET_MAX_SIZE_TO_150_150, _T("Set frame max size to 150,150\tF4"));
+ file_menu->Append(ID_SET_MAX_SIZE_TO_300_300, _T("Set frame max size to 300,300\tF5"));
+
+ wxMenuBar *menu_bar = new wxMenuBar;
+ menu_bar->Append(file_menu, _T("&File"));
+ main_frame->SetMenuBar(menu_bar);
+
+ main_frame->Connect( ID_SET_SIZE_TO_150_150, wxID_ANY,
+ wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler(MyMainFrame::OnSetSize_150_150) );
+ main_frame->Connect( ID_SET_SIZE_TO_200_200, wxID_ANY,
+ wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler(MyMainFrame::OnSetSize_200_200) );
+ main_frame->Connect( ID_SET_MAX_SIZE_TO_150_150, wxID_ANY,
+ wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler(MyMainFrame::OnSetMaxSize_150_150) );
+ main_frame->Connect( ID_SET_MAX_SIZE_TO_300_300, wxID_ANY,
+ wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler(MyMainFrame::OnSetMaxSize_300_300) );
+