X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c0ed460c2e7802793d591c84f3cfdbff159c5549..0492c5a094d1baac126331385d66d2f66aa5db52:/src/msw/statbmp.cpp 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?