X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/903f689bf7c3c379cba45881373aa9bdd15d6e70..2600d8ee0cb2304db077ccc0327fa2fa98b856c3:/include/wx/generic/gridg.h diff --git a/include/wx/generic/gridg.h b/include/wx/generic/gridg.h index 50795a2115..bf05ca26d3 100644 --- a/include/wx/generic/gridg.h +++ b/include/wx/generic/gridg.h @@ -66,7 +66,7 @@ class WXDLLEXPORT wxGenericGrid: public wxPanel bool Create(wxWindow *parent, wxWindowID, const wxPoint& pos, const wxSize& size, long style = 0, const wxString& name = "grid"); - bool CreateGrid(int nRows, int nCols, wxString **cellValues = NULL, short *widths = NULL, + bool CreateGrid(int nRows, int nCols, wxString **cellValues = (wxString **) NULL, short *widths = (short *) NULL, short defaultWidth = wxGRID_DEFAULT_CELL_WIDTH, short defaultHeight = wxGRID_DEFAULT_CELL_HEIGHT); void PaintGrid(wxDC& dc); void ClearGrid(void); @@ -290,7 +290,7 @@ class WXDLLEXPORT wxGridCell: public wxObject wxBitmap *cellBitmap; int alignment; - wxGridCell(wxGenericGrid *window = NULL); + wxGridCell(wxGenericGrid *window = (wxGenericGrid *) NULL); ~wxGridCell(void); virtual wxString& GetTextValue(void) { return textValue; } @@ -302,6 +302,7 @@ class WXDLLEXPORT wxGridCell: public wxObject inline wxColour& GetBackgroundColour(void) { return backgroundColour; } void SetBackgroundColour(const wxColour& colour); inline wxBrush *GetBackgroundBrush(void) { return backgroundBrush; } + inline void SetBackgroundBrush(wxBrush *brush) { backgroundBrush = brush; } inline int GetAlignment(void) { return alignment; } inline void SetAlignment(int align) { alignment = align; } inline wxBitmap *GetCellBitmap(void) { return cellBitmap; }