fixed compile errors

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20537 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn 2003-05-07 18:08:01 +00:00
parent ef5df12bdf
commit b63fce942f
2 changed files with 10 additions and 10 deletions

View File

@ -605,13 +605,6 @@ public:
Merged
};
enum wxAttrOverflowMode
{
Unset = -1,
Overflow,
SingleCell
};
// ctors
wxGridCellAttr(wxGridCellAttr *attrDefault = NULL)
{
@ -675,7 +668,7 @@ public:
bool HasRenderer() const { return m_renderer != NULL; }
bool HasEditor() const { return m_editor != NULL; }
bool HasReadWriteMode() const { return m_isReadOnly != Unset; }
bool HasOverflowMode() const { return m_overflow != Unset; }
bool HasOverflowMode() const { return m_overflow != UnsetOverflow; }
const wxColour& GetTextColour() const;
const wxColour& GetBackgroundColour() const;
@ -683,7 +676,7 @@ public:
void GetAlignment(int *hAlign, int *vAlign) const;
void GetSize(int *num_rows, int *num_cols) const;
bool GetOverflow() const
{ return m_overflow != wxGridCellAttr::SingleCell; }
{ return m_overflow != SingleCell; }
wxGridCellRenderer *GetRenderer(wxGrid* grid, int row, int col) const;
wxGridCellEditor *GetEditor(wxGrid* grid, int row, int col) const;
@ -701,6 +694,13 @@ private:
ReadOnly
};
enum wxAttrOverflowMode
{
UnsetOverflow = -1,
Overflow,
SingleCell
};
// the common part of all ctors
void Init(wxGridCellAttr *attrDefault = NULL);

View File

@ -2061,7 +2061,7 @@ void wxGridCellAttr::Init(wxGridCellAttr *attrDefault)
m_attrkind = wxGridCellAttr::Cell;
m_sizeRows = m_sizeCols = 1;
m_overflow = TRUE;
m_overflow = UnsetOverflow;
SetDefAttr(attrDefault);
}