| Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next 1 | 1. When i open new window, the window xp prompt me "Window No Responding" #2550 Posted by: 2003-08-24 14:42:48 | What happen with this?? When i call the new window create by wxmdichildframe, the window is not responding...
and, when i use ~appChildFrame();, it prompt me error, said that no matching function... ~_~
class appChildFrame: public wxMDIChildFrame{ public: appWindow *get_window; appChildFrame(wxMDIParentFrame *parent, const wxString& title, const wxPoint& pos, const wxSize& size, const long style); //~appChildFrame();
DECLARE_EVENT_TABLE() };
appChildFrame::appChildFrame(wxMDIParentFrame *parent, const wxString& title, const wxPoint& pos, const wxSize& size, const long style) : wxMDIChildFrame(parent, -1, title, pos, size, style | wxNO_FULL_REPAINT_ON_RESIZE){
SetSizeHints(100, 100); }
void MyFrame::NewWindow(wxCommandEvent& WXUNUSED(event)) { appChildFrame *subframe = new appChildFrame(frame, _T("Canvas Frame"), wxPoint(-1, -1), wxSize(-1, -1), wxDEFAULT_FRAME_STYLE);
subframe->SetTitle("A"); int width, height; subframe->GetClientSize(&width, &height); appWindow *get_window = new appWindow(subframe, wxPoint(0, 0), wxSize(width, height)); subframe->get_window = get_window;
get_window->SetScrollbars(20, 20, 50, 50); subframe->Show(TRUE); }
thank you | Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next 1 |
|
|