+ file_menu->Append(wxID_ANY,_T("File operations"),filedlg_menu);
+
+ #endif // wxUSE_FILEDLG
+
+ #if wxUSE_DIRDLG
+ wxMenu *dir_menu = new wxMenu;
+
+ dir_menu->Append(DIALOGS_DIR_CHOOSE, _T("&Choose a directory\tCtrl-D"));
+ dir_menu->Append(DIALOGS_DIRNEW_CHOOSE, _T("Choose a directory (with \"Ne&w\" button)\tShift-Ctrl-D"));
+ file_menu->Append(wxID_ANY,_T("Directory operations"),dir_menu);
+
+ #if USE_DIRDLG_GENERIC
+ dir_menu->AppendSeparator();
+ dir_menu->Append(DIALOGS_GENERIC_DIR_CHOOSE, _T("&Choose a directory (generic)"));
+ #endif // USE_DIRDLG_GENERIC
+
+ #endif // wxUSE_DIRDLG
+
+
+ #if wxUSE_STARTUP_TIPS || wxUSE_PROGRESSDLG || wxUSE_BUSYINFO || wxUSE_LOG_DIALOG
+
+ wxMenu *info_menu = new wxMenu;
+
+ #if wxUSE_STARTUP_TIPS
+ info_menu->Append(DIALOGS_TIP, _T("&Tip of the day\tCtrl-T"));
+ #endif // wxUSE_STARTUP_TIPS
+
+ #if wxUSE_PROGRESSDLG
+ info_menu->Append(DIALOGS_PROGRESS, _T("Pro&gress dialog\tCtrl-G"));
+ #endif // wxUSE_PROGRESSDLG
+
+ #if wxUSE_BUSYINFO
+ info_menu->Append(DIALOGS_BUSYINFO, _T("&Busy info dialog\tCtrl-B"));
+ #endif // wxUSE_BUSYINFO
+
+ #if wxUSE_LOG_DIALOG
+ info_menu->Append(DIALOGS_LOG_DIALOG, _T("&Log dialog\tCtrl-L"));
+ #endif // wxUSE_LOG_DIALOG
+
+ file_menu->Append(wxID_ANY,_T("Informative dialogs"),info_menu);
+
+ #endif // wxUSE_STARTUP_TIPS || wxUSE_PROGRESSDLG || wxUSE_BUSYINFO || wxUSE_LOG_DIALOG
+
+
+ #if wxUSE_FINDREPLDLG
+ wxMenu *find_menu = new wxMenu;
+ find_menu->AppendCheckItem(DIALOGS_FIND, _T("&Find dialog\tCtrl-F"));
+ find_menu->AppendCheckItem(DIALOGS_REPLACE, _T("Find and &replace dialog\tShift-Ctrl-F"));
+ file_menu->Append(wxID_ANY,_T("Searching"),find_menu);
+ #endif // wxUSE_FINDREPLDLG
+
+ #if USE_MODAL_PRESENTATION
+ wxMenu *modal_menu = new wxMenu;
+ modal_menu->Append(DIALOGS_MODAL, _T("Mo&dal dialog\tCtrl-W"));
+ modal_menu->AppendCheckItem(DIALOGS_MODELESS, _T("Modeless &dialog\tCtrl-Z"));
+ file_menu->Append(wxID_ANY,_T("Modal/Modeless"),modal_menu);
+ #endif // USE_MODAL_PRESENTATION
+
+ file_menu->AppendSeparator();
+ file_menu->Append(wxID_EXIT, _T("E&xit\tAlt-X"));
+
+ wxMenuBar *menu_bar = new wxMenuBar;
+ menu_bar->Append(file_menu, _T("&File"));
+ frame->SetMenuBar(menu_bar);
+
+ myCanvas = new MyCanvas(frame);
+ myCanvas->SetBackgroundColour(*wxWHITE);
+
+ frame->Centre(wxBOTH);
+
+ // Show the frame
+ frame->Show(true);
+
+ SetTopWindow(frame);
+
+ return true;