]> git.saurik.com Git - wxWidgets.git/blob - docs/latex/wx/eraseevt.tex
Updated docs for wxProcessEvent
[wxWidgets.git] / docs / latex / wx / eraseevt.tex
1 \section{\class{wxEraseEvent}}\label{wxeraseevent}
2
3 An 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
16 To process an erase event, use this event handler macro to direct input to a member
17 function 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
26 Use the {\bf m\_DC} device context to draw into, don't create wxPaintDC in
27 the 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
39 Constructor.
40
41 \membersection{wxEraseEvent::m\_dc}
42
43 \member{wxDC*}{m\_dc}
44
45 The device context associated with the erase event.
46
47 \membersection{wxEraseEvent::GetDC}\label{wxeraseeventgetdc}
48
49 \constfunc{wxDC*}{GetDC}{\void}
50
51 Returns the device context to draw into.
52