Fixed bug in wxListCtrl

Made wxMDIDocView work


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@391 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
1998-07-28 22:08:36 +00:00
parent 32a4b1d57c
commit 9746a2ba50
11 changed files with 41 additions and 14 deletions

View File

@@ -114,7 +114,7 @@ int MyApp::OnExit(void)
* Called from view.cpp, when a view is created.
*/
wxFrame *MyApp::CreateChildFrame(wxDocument *doc, wxView *view, bool isCanvas)
wxMDIChildFrame *MyApp::CreateChildFrame(wxDocument *doc, wxView *view, bool isCanvas)
{
//// Make a child frame
wxDocMDIChildFrame *subframe = new wxDocMDIChildFrame(doc, view, GetMainFrame(), -1, "Child Frame",

View File

@@ -28,7 +28,7 @@ class MyApp: public wxApp
bool OnInit(void);
int OnExit(void);
wxFrame *CreateChildFrame(wxDocument *doc, wxView *view, bool isCanvas);
wxMDIChildFrame *CreateChildFrame(wxDocument *doc, wxView *view, bool isCanvas);
protected:
wxDocManager* m_docManager;

View File

@@ -113,7 +113,7 @@ bool DrawingView::OnClose(bool deleteWindow)
if (frame)
frame->SetTitle(s);
SetFrame(NULL);
SetFrame((wxFrame*)NULL);
Activate(FALSE);