X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a660d684eda27638bca0384b2058911a31c8e845..6a54cc2a1156229f1db27ec816c9be84e8da2ee3:/docs/latex/wx/eraseevt.tex?ds=sidebyside diff --git a/docs/latex/wx/eraseevt.tex b/docs/latex/wx/eraseevt.tex index f7397c2b42..0eee070ab1 100644 --- a/docs/latex/wx/eraseevt.tex +++ b/docs/latex/wx/eraseevt.tex @@ -7,6 +7,10 @@ An erase event is sent when a window's background needs to be repainted. \helpref{wxEvent}{wxevent}\\ \helpref{wxObject}{wxobject} +\wxheading{Include files} + + + \wxheading{Event table macros} To process an erase event, use this event handler macro to direct input to a member @@ -14,12 +18,13 @@ function that takes a wxEraseEvent argument. \twocolwidtha{7cm} \begin{twocollist}\itemsep=0pt -\twocolitem{{\bf EVT\_ERASE(func)}}{Process a wxEVT\_ERASE\_BACKGROUND event.} +\twocolitem{{\bf EVT\_ERASE\_BACKGROUND(func)}}{Process a wxEVT\_ERASE\_BACKGROUND event.} \end{twocollist}% \wxheading{Remarks} -If the {\bf m\_DC} member is non-NULL, draw into this device context. +Use the {\bf m\_DC} device context to draw into, don't create wxPaintDC in +the event handler. \wxheading{See also} @@ -37,12 +42,11 @@ Constructor. \member{wxDC*}{m\_dc} -The device context associated with the erase event (may be NULL). +The device context associated with the erase event. \membersection{wxEraseEvent::GetDC}\label{wxeraseeventgetdc} \constfunc{wxDC*}{GetDC}{\void} -Returns the device context to draw into. If this is non-NULL, you should draw -into it to perform the erase operation. +Returns the device context to draw into.