#include "wx/settings.h"
// Set to zero to use no double-buffering
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
#define USE_DOUBLE_BUFFERING 1
#else
#define USE_DOUBLE_BUFFERING 0
void wxGenericGrid::OnPaint(wxPaintEvent& WXUNUSED(event))
{
- wxRectangle rect;
int w, h;
GetClientSize(&w, &h);
{
wxPaintDC paintDC(this);
wxMemoryDC dc(& paintDC);
- dc.SelectObject(m_doubleBufferingBitmap);
+ dc.SelectObject(* m_doubleBufferingBitmap);
PaintGrid(dc);
// Erase (some of) the background.
// Currently, a Windows-only optimisation.
-void wxGenericGrid::OnEraseBackground(wxEraseEvent& event)
+void wxGenericGrid::OnEraseBackground(wxEraseEvent& WXUNUSED(event) )
{
wxClientDC dc(this);
dc.BeginDrawing();
{
dc->SetBrush(*cell->GetBackgroundBrush());
dc->SetPen(*wxTRANSPARENT_PEN);
-#ifdef __MOTIF__
+#ifdef __WXMOTIF__
dc->DrawRectangle(rect->x+1, rect->y+1, rect->width-1, rect->height-1);
#else
dc->DrawRectangle(rect->x+1, rect->y+1, rect->width, rect->height);
// Why isn't this needed for Windows??
// Probably because of the SetValue??
-#ifndef __WINDOWS__
+#ifndef __WXMSW__
HighlightCell(dc);
#endif
dc->DestroyClippingRegion();
currentPos = TRUE;
}
// Gets refreshed anyway in MSW
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
if (!currentPos)
#endif
{