]> git.saurik.com Git - wxWidgets.git/blame_incremental - docs/latex/wx/eraseevt.tex
1. reset default item in ~wxWindow (better to be safe)
[wxWidgets.git] / docs / latex / wx / eraseevt.tex
... / ...
CommitLineData
1\section{\class{wxEraseEvent}}\label{wxeraseevent}
2
3An erase event is sent when a window's background needs to be repainted.
4
5\wxheading{Derived from}
6
7\helpref{wxEvent}{wxevent}\\
8\helpref{wxObject}{wxobject}
9
10\wxheading{Include files}
11
12<wx/event.h>
13
14\wxheading{Event table macros}
15
16To process an erase event, use this event handler macro to direct input to a member
17function that takes a wxEraseEvent argument.
18
19\twocolwidtha{7cm}
20\begin{twocollist}\itemsep=0pt
21\twocolitem{{\bf EVT\_ERASE\_BACKGROUND(func)}}{Process a wxEVT\_ERASE\_BACKGROUND event.}
22\end{twocollist}%
23
24\wxheading{Remarks}
25
26Use the {\bf m\_DC} device context to draw into, don't create wxPaintDC in
27the event handler.
28
29\wxheading{See also}
30
31\helpref{wxWindow::OnEraseBackground}{wxwindowonerasebackground}, \helpref{Event handling overview}{eventhandlingoverview}
32
33\latexignore{\rtfignore{\wxheading{Members}}}
34
35\membersection{wxEraseEvent::wxEraseEvent}
36
37\func{}{wxEraseEvent}{\param{int }{id = 0}, \param{wxDC* }{dc = NULL}}
38
39Constructor.
40
41\membersection{wxEraseEvent::m\_dc}
42
43\member{wxDC*}{m\_dc}
44
45The device context associated with the erase event.
46
47\membersection{wxEraseEvent::GetDC}\label{wxeraseeventgetdc}
48
49\constfunc{wxDC*}{GetDC}{\void}
50
51Returns the device context to draw into.
52