]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/gauge95.cpp
improved handling of frames with parent: now they have a NULL parent HWND (to
[wxWidgets.git] / src / msw / gauge95.cpp
index 7fbe861c1d4a418b991b460b0a4255d0094f0658..285d0581c113830cb5f8eed6ff3ca6e80a30397b 100644 (file)
@@ -107,6 +107,8 @@ void wxGauge95::SetSize(int x, int y, int width, int height, int sizeFlags)
   if (y == -1 || (sizeFlags & wxSIZE_ALLOW_MINUS_ONE))
     y1 = currentY;
 
+  AdjustForParentClientOrigin(x1, y1, sizeFlags);
+
   // If we're prepared to use the existing size, then...
   if (width == -1 && height == -1 && ((sizeFlags & wxSIZE_AUTO) != wxSIZE_AUTO))
   {