]> git.saurik.com Git - wxWidgets.git/blobdiff - docs/latex/wx/paintevt.tex
Faster Deselect
[wxWidgets.git] / docs / latex / wx / paintevt.tex
index afe74a5be906f9f062cae3d9868b343f73023915..9facc650caae942aef5fad6dd0af7d8b1f7dc466 100644 (file)
@@ -35,7 +35,7 @@ For example:
 
 \small{%
 \begin{verbatim}
-  void MyWindow::OnPaint(wxPaintEvent\& event)
+  void MyWindow::OnPaint(wxPaintEvent& event)
   {
       wxPaintDC dc(this);
 
@@ -55,7 +55,7 @@ Here is an example of using the \helpref{wxRegionIterator}{wxregioniterator} cla
 {\small%
 \begin{verbatim}
 // Called when window needs to be repainted.
-void MyWindow::OnPaint(wxPaintEvent\& event)
+void MyWindow::OnPaint(wxPaintEvent& event)
 {
   wxPaintDC dc(this);
 
@@ -74,8 +74,7 @@ void MyWindow::OnPaint(wxPaintEvent\& event)
     vH = upd.GetH();
 
     // Alternatively we can do this:
-    // wxRect rect;
-    // upd.GetRect(&rect);
+    // wxRect rect(upd.GetRect());
 
     // Repaint this rectangle
     ...some code...
@@ -89,7 +88,7 @@ void MyWindow::OnPaint(wxPaintEvent\& event)
 
 \latexignore{\rtfignore{\wxheading{Members}}}
 
-\membersection{wxPaintEvent::wxPaintEvent}
+\membersection{wxPaintEvent::wxPaintEvent}\label{wxpainteventctor}
 
 \func{}{wxPaintEvent}{\param{int }{id = 0}}