#if wxUSE_IMAGE
static void AddFile(const wxString& filename, wxImage& image, long type);
-#endif // wxUSE_IMAGE
static void AddFile(const wxString& filename,
const wxBitmap& bitmap,
long type);
+#endif // wxUSE_IMAGE
+
};
#else // !wxUSE_GUI
wxLogError(s);
}
}
-#endif // wxUSE_IMAGE
/*static*/ void wxMemoryFSHandler::AddFile(const wxString& filename, const wxBitmap& bitmap, long type)
{
AddFile(filename, img, type);
}
-#endif
+#endif // wxUSE_IMAGE
+
+#endif // wxUSE_GUI
#endif // wxUSE_FILESYSTEM && wxUSE_FS_ZIP
m_icons.Empty();
}
+#if wxUSE_IMAGE
void wxIconBundle::AddIcon( const wxString& file, long type )
+#else
+void wxIconBundle::AddIcon( const wxString& WXUNUSED(file), long WXUNUSED(type) )
+#endif
{
#if wxUSE_IMAGE
size_t count = wxImage::GetImageCount( file, type );
//---------------------------------------------------------------------------
+#if wxUSE_IMAGE
bool wxRegion::Union(const wxBitmap& bmp,
const wxColour& transColour,
int tolerance)
+#else
+bool wxRegion::Union(const wxBitmap& WXUNUSED(bmp),
+ const wxColour& WXUNUSED(transColour),
+ int WXUNUSED(tolerance))
+#endif
{
#if wxUSE_IMAGE
unsigned char loR, loG, loB;
}
}
- return TRUE;
+ return true;
#else
// No wxImage support
- return FALSE;
+ return false;
#endif
}
return m_smallImageList;
}
-#if wxUSE_MIMETYPE
+#if wxUSE_MIMETYPE && wxUSE_IMAGE
// VS: we don't need this function w/o wxMimeTypesManager because we'll only have
// one icon and we won't resize it
{
m_smallImageList->Add(bmp);
}
+#if wxUSE_IMAGE
else
{
wxImage img = bmp.ConvertToImage();
else
m_smallImageList->Add(CreateAntialiasedBitmap(img));
}
-
+#endif // wxUSE_IMAGE
+
m_HashTable->Put(extension, new wxFileIconEntry(id));
return id;
}
// Create from XPM data
+#if wxUSE_IMAGE && wxUSE_XPM
bool wxBitmap::CreateFromXpm(const char **data)
+#else
+bool wxBitmap::CreateFromXpm(const char **WXUNUSED(data))
+#endif
{
#if wxUSE_IMAGE && wxUSE_XPM
Init();
wxMDIParentFrame::~wxMDIParentFrame()
{
// see comment in ~wxMDIChildFrame
+#if wxUSE_TOOLBAR
m_frameToolBar = NULL;
+#endif
m_frameStatusBar = NULL;
DestroyChildren();
{
// will be destroyed by DestroyChildren() but reset them before calling it
// to avoid using dangling pointers if a callback comes in the meanwhile
+#if wxUSE_TOOLBAR
m_frameToolBar = NULL;
+#endif
m_frameStatusBar = NULL;
DestroyChildren();
lpPos->cx = rectClient.right - rectClient.left;
lpPos->cy = rectClient.bottom - rectClient.top;
}
+#if wxUSE_TOOLBAR
wxMDIParentFrame* pFrameWnd = (wxMDIParentFrame *)GetParent();
if (pFrameWnd && pFrameWnd->GetToolBar() && pFrameWnd->GetToolBar()->IsShown())
{
pFrameWnd->GetToolBar()->Refresh();
}
+#endif
}
#endif // Win95