X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3c299c3ab663257429983c24e6fb71450f3cf9f1..a61d25e6394cb952ce59bbfbc68db72a07069dd9:/src/os2/gauge.cpp?ds=inline diff --git a/src/os2/gauge.cpp b/src/os2/gauge.cpp index b227ebf692..c1fe612f6c 100644 --- a/src/os2/gauge.cpp +++ b/src/os2/gauge.cpp @@ -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;