projects
/
wxWidgets.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
051205e
)
better update rect calculation
author
Vadim Zeitlin
<vadim@wxwidgets.org>
Sun, 20 Jun 1999 21:34:39 +0000
(21:34 +0000)
committer
Vadim Zeitlin
<vadim@wxwidgets.org>
Sun, 20 Jun 1999 21:34:39 +0000
(21:34 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2841
c3d73ce0
-8a6f-49c7-b76d-
6d57e0e08775
src/msw/statbmp.cpp
patch
|
blob
|
blame
|
history
diff --git
a/src/msw/statbmp.cpp
b/src/msw/statbmp.cpp
index 727d02e67f1e236c0ade2ec21d6e231937ca0bb3..c22387c146c932fd2c23b2de7cb5f427bde22341 100644
(file)
--- a/
src/msw/statbmp.cpp
+++ b/
src/msw/statbmp.cpp
@@
-189,7
+189,6
@@
void wxStaticBitmap::SetBitmap(const wxBitmap& bitmap)
int w, h;
GetPosition(&x, &y);
GetSize(&w, &h);
- RECT rect = { x, y, x + w, y + h };
#ifdef __WIN32__
HANDLE handle = m_isIcon ? (HANDLE)m_image.icon->GetHICON()
@@
-204,10
+203,14
@@
void wxStaticBitmap::SetBitmap(const wxBitmap& bitmap)
height = bitmap.GetHeight();
if ( width && height )
{
+ w = width;
+ h = height;
+
::MoveWindow((HWND)GetHWND(), x, y, width, height, FALSE);
}
}
+ RECT rect = { x, y, x + w, y + h };
InvalidateRect((HWND)GetParent()->GetHWND(), &rect, TRUE);
}