From 316917bffca997a298bbb691adc7e7c8118ccda9 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Sun, 2 Apr 2000 21:58:46 +0000 Subject: [PATCH] Added "wxPaintDC dc(this);" to wxGrid::OnPaint prevent too many paintevents that don't actually do anything. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@7039 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/grid.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/generic/grid.cpp b/src/generic/grid.cpp index a3eaadcc91..60ab00568e 100644 --- a/src/generic/grid.cpp +++ b/src/generic/grid.cpp @@ -21,7 +21,7 @@ #pragma implementation "grid.h" #endif -// For compilers that support precompilation, includes "wx/wx.h". +// For compilers that support precompilatixon, includes "wx/wx.h". #include "wx/wxprec.h" #include "wx/defs.h" @@ -5114,6 +5114,8 @@ bool wxGrid::SendEvent( const wxEventType type, void wxGrid::OnPaint( wxPaintEvent& WXUNUSED(event) ) { + wxPaintDC dc(this); // needed to prevent zillions of paint events on MSW + m_rowLabelWin->Refresh(); m_colLabelWin->Refresh(); m_cornerLabelWin->Refresh();