// FreeResource(TRUE);
}
-bool wxPalette::FreeResource(bool force)
+bool wxPalette::FreeResource(bool WXUNUSED(force))
{
if ( M_PALETTEDATA && M_PALETTEDATA->m_hPalette)
{
{
UnRef();
-#ifdef __WXWINE__
+#if defined(__WXWINE__) || defined(__WXMICROWIN__)
return (FALSE);
-
+
#else
m_refData = new wxPaletteRefData;
M_PALETTEDATA->m_hPalette = (WXHPALETTE) CreatePalette((LPLOGPALETTE)npPal);
LocalFree((HANDLE)npPal);
return TRUE;
-
+
#endif
}
int wxPalette::GetPixel(const unsigned char red, const unsigned char green, const unsigned char blue) const
{
+#ifdef __WXMICROWIN__
+ return FALSE;
+#else
if ( !m_refData )
return FALSE;
return ::GetNearestPaletteIndex((HPALETTE) M_PALETTEDATA->m_hPalette, PALETTERGB(red, green, blue));
+#endif
}
bool wxPalette::GetRGB(int index, unsigned char *red, unsigned char *green, unsigned char *blue) const
{
+#ifdef __WXMICROWIN__
+ return FALSE;
+#else
if ( !m_refData )
return FALSE;
return TRUE;
} else
return FALSE;
+#endif
}
void wxPalette::SetHPALETTE(WXHPALETTE pal)