]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/gauge.cpp
removed obsolete files and added missing ones
[wxWidgets.git] / src / os2 / gauge.cpp
index b227ebf692cddc28aea6931882ccfaa98fe88e39..c1fe612f6c8c1bd3a4a479801be38f572450dd76 100644 (file)
@@ -122,6 +122,7 @@ bool wxGauge::Create(
     int                             nWidth   = rSize.x;
     int                             nHeight  = rSize.y;
     long                            lMsStyle = 0L;
+    SWP                             vSwp;
 
     SetName(rsName);
 #if wxUSE_VALIDATORS
@@ -173,6 +174,9 @@ bool wxGauge::Create(
                             );
     ::WinSetWindowULong(GetHwnd(), QWL_USER, (LONG)this);
     fnWndProcGauge = (WXFARPROC)::WinSubclassWindow(m_hWnd, (PFNWP)wxGaugeWndProc);
+    ::WinQueryWindowPos(m_hWnd, &vSwp);
+    SetXComp(vSwp.x);
+    SetYComp(vSwp.y);
     SetFont(pParent->GetFont());
     if (nWidth == -1L)
         nWidth = 50L;