]> git.saurik.com Git - wxWidgets.git/blobdiff - docs/latex/wx/paintevt.tex
wxEVT_MOVING = 442, not 4442, in event compatibility mode
[wxWidgets.git] / docs / latex / wx / paintevt.tex
index afe74a5be906f9f062cae3d9868b343f73023915..cae225e95e704615117cb069ad55a059b5fd96a5 100644 (file)
@@ -35,7 +35,7 @@ For example:
 
 \small{%
 \begin{verbatim}
 
 \small{%
 \begin{verbatim}
-  void MyWindow::OnPaint(wxPaintEvent\& event)
+  void MyWindow::OnPaint(wxPaintEvent& event)
   {
       wxPaintDC dc(this);
 
   {
       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.
 {\small%
 \begin{verbatim}
 // Called when window needs to be repainted.
-void MyWindow::OnPaint(wxPaintEvent\& event)
+void MyWindow::OnPaint(wxPaintEvent& event)
 {
   wxPaintDC dc(this);
 
 {
   wxPaintDC dc(this);
 
@@ -74,8 +74,7 @@ void MyWindow::OnPaint(wxPaintEvent\& event)
     vH = upd.GetH();
 
     // Alternatively we can do this:
     vH = upd.GetH();
 
     // Alternatively we can do this:
-    // wxRect rect;
-    // upd.GetRect(&rect);
+    // wxRect rect(upd.GetRect());
 
     // Repaint this rectangle
     ...some code...
 
     // Repaint this rectangle
     ...some code...