Added notes for OnPreparePrinting

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23268 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2003-08-28 08:47:00 +00:00
parent ca7f743abb
commit 5eace63e83

View File

@@ -907,9 +907,14 @@ is called once for every print job (regardless of how many copies are being prin
\func{void}{OnPreparePrinting}{\void}
Called once by the framework before any other demands are made of the
wxPrintout object. This gives the object an opportunity to calculate the
number of pages in the document, for example.
Called once by the framework to allow the application to perform general
preparation tasks.
In wxWindows 2.4, this function is called {\it after} GetPageInfo is called,
which is not ideal. In wxWindows 2.5, the function is correctly called
before GetPageInfo is called. Please see Patch 781346 on SourceForge
for a backport of this fix. Unfortunately we cannot apply it to 2.4,
for binary compatibility reasons.
\membersection{wxPrintout::OnPrintPage}\label{wxprintoutonprintpage}