friend class WXDLLEXPORT wxPalette;
public:
wxPaletteRefData(void);
- ~wxPaletteRefData(void);
+ virtual ~wxPaletteRefData(void);
protected:
WXHPALETTE m_hPalette;
};
wxPalette(void);
wxPalette(int n, const unsigned char *red, const unsigned char *green, const unsigned char *blue);
- ~wxPalette(void);
+ virtual ~wxPalette(void);
bool Create(int n, const unsigned char *red, const unsigned char *green, const unsigned char *blue);
int GetPixel(unsigned char red, unsigned char green, unsigned char blue) const;
bool GetRGB(int pixel, unsigned char *red, unsigned char *green, unsigned char *blue) const;
- virtual bool Ok(void) const { return (m_refData != NULL) ; }
+ virtual bool Ok() const { return IsOk(); }
+ virtual bool IsOk(void) const { return (m_refData != NULL) ; }
inline bool operator == (const wxPalette& palette) const { return m_refData == palette.m_refData; }
inline bool operator != (const wxPalette& palette) const { return m_refData != palette.m_refData; }