+#define M_PALETTEDATA ((wxPaletteRefData *)m_refData)
+
+bool wxPalette::Create(int n,
+ unsigned char *red,
+ unsigned char *green,
+ unsigned char *blue)
+{
+ m_refData = new wxPaletteRefData(n, red, green, blue);
+
+ return IsOk();
+}
+
+wxGDIRefData *wxPalette::CreateGDIRefData() const
+{
+ return new wxPaletteRefData;
+}
+
+wxGDIRefData *wxPalette::CloneGDIRefData(const wxGDIRefData *data) const
+{
+ return new wxPaletteRefData(*wx_static_cast(const wxPaletteRefData *, data));