X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f4fcc2919776cffa5e3b2f0d44dd24c41e652ff4..4d4f4290eaf2b60554ca3a0c53ffa8805012e155:/docs/latex/wx/paintevt.tex diff --git a/docs/latex/wx/paintevt.tex b/docs/latex/wx/paintevt.tex index afe74a5be9..cae225e95e 100644 --- a/docs/latex/wx/paintevt.tex +++ b/docs/latex/wx/paintevt.tex @@ -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...