]> git.saurik.com Git - wxWidgets.git/blame - docs/latex/wx/eraseevt.tex
Blind fix for daily builds
[wxWidgets.git] / docs / latex / wx / eraseevt.tex
CommitLineData
a660d684
KB
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
954b8ae6
JS
10\wxheading{Include files}
11
12<wx/event.h>
13
a660d684
KB
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
884360bc 21\twocolitem{{\bf EVT\_ERASE\_BACKGROUND(func)}}{Process a wxEVT\_ERASE\_BACKGROUND event.}
a660d684
KB
22\end{twocollist}%
23
24\wxheading{Remarks}
25
dce5c1db
VS
26Use the {\bf m\_DC} device context to draw into, don't create wxPaintDC in
27the event handler.
a660d684
KB
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
dce5c1db 45The device context associated with the erase event.
a660d684
KB
46
47\membersection{wxEraseEvent::GetDC}\label{wxeraseeventgetdc}
48
49\constfunc{wxDC*}{GetDC}{\void}
50
dce5c1db 51Returns the device context to draw into.
a660d684 52