]> git.saurik.com Git - wxWidgets.git/blame - docs/latex/wx/closeevt.tex
GTK
[wxWidgets.git] / docs / latex / wx / closeevt.tex
CommitLineData
a660d684
KB
1\section{\class{wxCloseEvent}}\label{wxcloseevent}
2
3This event class contains information about window and session close events.
4
5\wxheading{Derived from}
6
7\helpref{wxEvent}{wxevent}
8
9\wxheading{Event table macros}
10
11To process a close event, use these event handler macros to direct input to member
12functions that take a wxCloseEvent argument.
13
14\twocolwidtha{7cm}
15\begin{twocollist}\itemsep=0pt
16\twocolitem{{\bf EVT\_CLOSE(func)}}{Process a close event, supplying the member function.}
17\end{twocollist}%
18
19\wxheading{See also}
20
21\helpref{wxWindow::OnCloseWindow}{wxwindowonclosewindow},\rtfsp
22\helpref{wxWindow::Close}{wxwindowclose},\rtfsp
23\helpref{Window deletion overview}{windowdeletionoverview}
24
25\latexignore{\rtfignore{\wxheading{Members}}}
26
27\membersection{wxCloseEvent::wxCloseEvent}
28
29\func{}{wxCloseEvent}{\param{WXTYPE}{ commandEventType = 0}, \param{int}{ id = 0}}
30
31Constructor.
32
33\membersection{wxCloseEvent::GetLoggingOff}\label{wxcloseeventgetloggingoff}
34
35\constfunc{bool}{GetLoggingOff}{\void}
36
37Returns TRUE if the user is logging off.
38
39\membersection{wxCloseEvent::GetSessionEnding}\label{wxcloseeventgetsessionending}
40
41\constfunc{bool}{GetSessionEnding}{\void}
42
43Returns TRUE if the session is ending.
44
45\membersection{wxCloseEvent::GetForce}\label{wxcloseeventgetforce}
46
47\constfunc{void}{GetForce}{\void}
48
49Returns TRUE if the application wishes to force the window to close.
50
51\membersection{wxCloseEvent::Veto}\label{wxcloseeventveto}
52
53\func{void}{Veto}{\void}
54
55Call this from your event handler to veto a system shutdown.
56
57