X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6523d1198fc8232438b363a370f71a06dff27ee4..307f16e829979a22bf00b699b5b2e852cd4eb59e:/include/wx/gdicmn.h diff --git a/include/wx/gdicmn.h b/include/wx/gdicmn.h index 236479a457..b787855e72 100644 --- a/include/wx/gdicmn.h +++ b/include/wx/gdicmn.h @@ -149,6 +149,16 @@ enum wxStockCursor #define wxICON(X) wxIcon("" #X "") #endif // platform +/* Another macro: this one is for portable creation of bitmaps. We assume that + under Unix bitmaps live in XPMs and under Windows they're in ressources. + */ + +#if defined(__WXMSW__) || defined(__WXPM__) + #define wxBITMAP(name) wxBitmap(#name, wxBITMAP_TYPE_RESOURCE) +#else // !(Windows || OS2) + #define wxBITMAP(name) wxBitmap(name##_xpm, wxBITMAP_TYPE_XPM) +#endif // platform + // =========================================================================== // classes // ===========================================================================