X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4438caf41af49f00f3c8137ac801871f59cce386..18027d49b9daea9f8808052d927246b4489b0ef9:/src/msw/statbmp.cpp?ds=sidebyside diff --git a/src/msw/statbmp.cpp b/src/msw/statbmp.cpp index 200e920bd8..cc8808dd41 100644 --- a/src/msw/statbmp.cpp +++ b/src/msw/statbmp.cpp @@ -182,7 +182,11 @@ void wxStaticBitmap::SetBitmap(const wxBitmap& bitmap) } } - RECT rect = { x, y, x + w, y + h }; + RECT rect ; + rect.left = x ; + rect.top = y ; + rect.right = x + w ; + rect.bottom = y + h ; InvalidateRect((HWND)GetParent()->GetHWND(), &rect, TRUE); }