X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/dbdb39b2d0b8c3359eab1693fd1fc786499f62d7..de8a0ed32a1472a580c11e946af87411673c09d9:/docs/latex/wx/view.tex?ds=inline diff --git a/docs/latex/wx/view.tex b/docs/latex/wx/view.tex index e977bd41df..77b0811952 100644 --- a/docs/latex/wx/view.tex +++ b/docs/latex/wx/view.tex @@ -130,12 +130,14 @@ frame associated with the view. \func{virtual bool}{OnCreate}{\param{wxDocument* }{doc}, \param{long}{ flags}} -Called just after view construction to give the view a chance to initialize -itself based on the passed document and flags (unused). By default, simply -returns TRUE. If the function returns FALSE, the view will be deleted. - -The predefined document child frame, wxDocChildFrame, calls this function -automatically. +wxDocManager or wxDocument creates a wxView via a wxDocTemplate. +Just after the wxDocTemplate creates the wxView, it calls +wxView::OnCreate. In its OnCreate member function, the wxView can create a wxDocChildFrame +or a derived class. This wxDocChildFrame provides user interface +elements to view and/or edit the contents of the wxDocument. + +By default, simply returns TRUE. If the function returns FALSE, the +view will be deleted. \membersection{wxView::OnCreatePrintout}