git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1144
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// Create the main frame window
MyFrame *frame = new MyFrame(NULL, "Dynamic wxWindows App", 50, 50, 450, 340);
// Create the main frame window
MyFrame *frame = new MyFrame(NULL, "Dynamic wxWindows App", 50, 50, 450, 340);
- frame->Connect( DYNAMIC_QUIT, -1, wxEVT_COMMAND_MENU_SELECTED, (wxObjectEventFunction)MyFrame::OnQuit );
- frame->Connect( DYNAMIC_ABOUT, -1, wxEVT_COMMAND_MENU_SELECTED, (wxObjectEventFunction)MyFrame::OnAbout );
+ frame->Connect( DYNAMIC_QUIT, -1, wxEVT_COMMAND_MENU_SELECTED, (wxObjectEventFunction) (wxEventFunction) (wxCommandEventFunction) MyFrame::OnQuit );
+ frame->Connect( DYNAMIC_ABOUT, -1, wxEVT_COMMAND_MENU_SELECTED, (wxObjectEventFunction) (wxEventFunction) (wxCommandEventFunction) MyFrame::OnAbout );
// Give it an icon
#ifdef __WXMSW__
// Give it an icon
#ifdef __WXMSW__
+ delete[] astrChoices;
+
// create the status line
const int widths[] = { -1, 60 };
CreateStatusBar(2);
// create the status line
const int widths[] = { -1, 60 };
CreateStatusBar(2);
void OnItemCollapsing(wxTreeEvent& event);
void OnSelChanged(wxTreeEvent& event);
void OnSelChanging(wxTreeEvent& event);
void OnItemCollapsing(wxTreeEvent& event);
void OnSelChanged(wxTreeEvent& event);
void OnSelChanging(wxTreeEvent& event);
- void OnTreeKeyDown(wxTreeEvent& event);
+ void OnTreeKeyDown(wxKeyEvent& event);
void GetItemsRecursively(const wxTreeItemId& idParent, long cookie);
void GetItemsRecursively(const wxTreeItemId& idParent, long cookie);