X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/82540ef2327daaf6ae78189139a669afc9edf9d9..b2edef6f2f587d957eabbc17364382293707340f:/docs/latex/wx/view.tex diff --git a/docs/latex/wx/view.tex b/docs/latex/wx/view.tex index 139269555d..77b0811952 100644 --- a/docs/latex/wx/view.tex +++ b/docs/latex/wx/view.tex @@ -10,6 +10,10 @@ and \helpref{wxDocManager}{wxdocmanager} classes. \helpref{wxEvtHandler}{wxevthandler}\\ \helpref{wxObject}{wxobject} +\wxheading{Include files} + + + \wxheading{See also} \helpref{wxView overview}{wxviewoverview}, \helpref{wxDocument}{wxdocument}, \helpref{wxDocTemplate}{wxdoctemplate},\rtfsp @@ -39,7 +43,7 @@ variable when the view is created. Not currently used by the framework. \membersection{wxView::wxView} -\func{}{wxView}{\param{wxDocument* }{doc = NULL}} +\func{}{wxView}{\void} Constructor. Define your own default constructor to initialize application-specific data. @@ -126,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. +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. -The predefined document child frame, wxDocChildFrame, calls this function -automatically. +By default, simply returns TRUE. If the function returns FALSE, the +view will be deleted. \membersection{wxView::OnCreatePrintout}