X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c0ed460c2e7802793d591c84f3cfdbff159c5549..978f38c238bb83dbb5a73104e4e6870d984dd058:/src/msw/statbmp.cpp?ds=sidebyside diff --git a/src/msw/statbmp.cpp b/src/msw/statbmp.cpp index e5070f3546..89f992643f 100644 --- a/src/msw/statbmp.cpp +++ b/src/msw/statbmp.cpp @@ -144,7 +144,7 @@ void wxStaticBitmap::SetBitmap(const wxBitmap& bitmap) bool wxStaticBitmap::MSWOnDraw(WXDRAWITEMSTRUCT *item) { long style = GetWindowLong((HWND) GetHWND(), GWL_STYLE); -#ifdef __WIN32__ +#if defined(__WIN32__) && defined(SS_BITMAP) if ((style & 0xFF) == SS_BITMAP) { // Should we call Default() here?