+#define M_PALETTEDATA ((wxPaletteRefData *)m_refData)
+
+bool wxPalette::Create(int n,
+ const unsigned char *red,
+ const unsigned char *green,
+ const 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(*static_cast<const wxPaletteRefData *>(data));