X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4438caf41af49f00f3c8137ac801871f59cce386..5d47c8a0d2773f955261b5f4a78120d9b6394366:/src/msw/statbmp.cpp 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); }