X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2b41de6e64531e0314e607f97ab4e36401d70cca..d30ff492f0ee23d067e996c0a5f769e4dafb0225:/docs/latex/wx/app.tex diff --git a/docs/latex/wx/app.tex b/docs/latex/wx/app.tex index 0e58675e98..f4e827c960 100644 --- a/docs/latex/wx/app.tex +++ b/docs/latex/wx/app.tex @@ -85,6 +85,17 @@ This can be used for programming event loops, e.g. \helpref{wxApp::Pending}{wxapppending} +\membersection{wxApp::FilterEvent}\label{wxappfilterevent} + +\func{int}{FilterEvent}{\param{wxEvent\& }{event}} + +This function is called before processing any event and allows the application +to preempt the processing of some events. If this method returns $-1$ the event +is processed normally, otherwise either {\tt TRUE} or {\tt FALSE} should be +returned and the event processing stops immediately considering that the event +had been already processed (for the former return value) or that it is not +going to be processed at all (for the latter one). + \membersection{wxApp::GetAppName}\label{wxappgetappname} \constfunc{wxString}{GetAppName}{\void} @@ -424,14 +435,13 @@ Under Windows, OnQueryEndSession is called in response to the WM\_QUERYENDSESSIO \wxheading{See also} \helpref{wxWindow::Close}{wxwindowclose},\rtfsp -\helpref{wxWindow::OnCloseWindow}{wxwindowonclosewindow},\rtfsp \helpref{wxCloseEvent}{wxcloseevent} %% GD: OnXXX functions are not documented %%\helpref{wxApp::OnEndSession}{wxapponendsession} \membersection{wxApp::ProcessMessage}\label{wxappprocessmessage} -\func{bool}{ProcessMessage}{\param{MSG *}{msg}} +\func{bool}{ProcessMessage}{\param{WXMSG *}{msg}} Windows-only function for processing a message. This function is called from the main message loop, checking for windows that @@ -446,7 +456,7 @@ the PreTranslateMessage function: // Provide wxWindows message loop compatibility BOOL CTheApp::PreTranslateMessage(MSG *msg) { - if (wxTheApp && wxTheApp->ProcessMessage(msg)) + if (wxTheApp && wxTheApp->ProcessMessage((WXMSW *)msg)) return TRUE; else return CWinApp::PreTranslateMessage(msg); @@ -482,7 +492,6 @@ If TRUE is returned, more OnIdle processing is requested by one or more window. %% GD: OnXXX functions are not documented %%\helpref{wxApp::OnIdle}{wxapponidle} -\helpref{wxWindow::OnIdle}{wxwindowonidle},\rtfsp \helpref{wxIdleEvent}{wxidleevent} \membersection{wxApp::SetAppName}\label{wxappsetappname}