Guidance
指路人
g.yi.org
Guidance Forums / wxWidgets (wxWindows) in C++ / When i open new window, the window xp prompt me "Window No Responding"

Register 
注册
Search 搜索
首页 
Home Home
Software
Upload

  
Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
Message1. 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 First 1 Last
掌柜推荐
 
 
 
 
 
 
 
 
 
 
 
 
© Fri 2024-3-29  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0