1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67
|
<HTML>
<head><title>wxEraseEvent</title></head>
<BODY BGCOLOR=#FFFFFF>
<A NAME="wxeraseevent"></A><CENTER>
<A HREF="wx.htm"><img align=center src="contents.gif" BORDER=0 ALT="Contents"></A> <A HREF="wx22.htm#classref"><img align=center src="up.gif" BORDER=0 ALT="Up"></A> <A HREF="wx82.htm#wxdroptarget"><img align=center src="back.gif" BORDER=0 ALT="Previous"></A> <A HREF="wx84.htm#wxevent"><img align=center src="forward.gif" BORDER=0 ALT="Next"></A> </CENTER><HR>
<H2>wxEraseEvent</H2>
<P>
An erase event is sent when a window's background needs to be repainted.<P>
<B><FONT COLOR="#FF0000">Derived from</FONT></B><P>
<A HREF="wx84.htm#wxevent">wxEvent</A><BR>
<A HREF="wx158.htm#wxobject">wxObject</A><P>
<B><FONT COLOR="#FF0000">Include files</FONT></B><P>
<wx/event.h><P>
<B><FONT COLOR="#FF0000">Event table macros</FONT></B><P>
To process an erase event, use this event handler macro to direct input to a member
function that takes a wxEraseEvent argument.<P>
<TABLE>
<TR><TD VALIGN=TOP>
<B>EVT_ERASE_BACKGROUND(func)</B>
</TD>
<TD VALIGN=TOP>
Process a wxEVT_ERASE_BACKGROUND event.
</TD></TR>
</TABLE>
<B><FONT COLOR="#FF0000">Remarks</FONT></B><P>
If the <B>m_DC</B> member is non-NULL, draw into this device context.<P>
<B><FONT COLOR="#FF0000">See also</FONT></B><P>
<A HREF="wx260.htm#wxwindowonerasebackground">wxWindow::OnEraseBackground</A>, <A HREF="wx299.htm#eventhandlingoverview">Event handling overview</A><P>
<B><FONT COLOR="#FF0000">Members</FONT></B><P>
<A HREF="#topic336">wxEraseEvent::wxEraseEvent</A><BR>
<A HREF="#topic337">wxEraseEvent::m_dc</A><BR>
<A HREF="#wxeraseeventgetdc">wxEraseEvent::GetDC</A><BR>
<P>
<HR>
<A NAME="topic336"></A>
<H3>wxEraseEvent::wxEraseEvent</H3>
<P>
<B></B> <B>wxEraseEvent</B>(<B>int </B><I>id = 0</I>, <B>wxDC* </B><I>dc = NULL</I>)<P>
Constructor.<P>
<HR>
<A NAME="topic337"></A>
<H3>wxEraseEvent::m_dc</H3>
<P>
wxDC* m_dc<P>
The device context associated with the erase event (may be NULL).<P>
<HR>
<A NAME="wxeraseeventgetdc"></A>
<H3>wxEraseEvent::GetDC</H3>
<P>
<B>wxDC*</B> <B>GetDC</B>() <B>const</B><P>
Returns the device context to draw into. If this is non-NULL, you should draw
into it to perform the erase operation.<P>
</BODY></HTML>
|