I made a derived class MyHtmlwindow from wxhtmlwindo, but now I need to call some code when this window is closed.
Tried with EVT_CLOSE but that is not working inside the event table declaration.
Code: Select all
EVT_CLOSE(MyHtmlWindow::Onclosewindow)
Code: Select all
C++ #define EVT_CLOSE(func) wx__DECLARE_EVT0(wxEVT_CLOSE_WINDOW, wxCloseEventHandler(func))
Code: Select all
wxEVT_CLOSE_WINDOW(MyHtmlWindow::Onclosewindow)
Code: Select all
C++ (<error-type>)<error>(&MyHtmlWindow::Onclosewindow)
I consturct it with htmlwindow on a panel with mainframe as parent, and then show ith with Addpane wihtin the wxAuimanager.
must I create an extra frame first, and then make it?