X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0fba44b4103530bd7904c4b5720b7568b753daec..88c139da4639cd25e4ad1298062e1e8b19ee29f1:/src/os2/gauge.cpp diff --git a/src/os2/gauge.cpp b/src/os2/gauge.cpp index 6d1486b192..972246d597 100644 --- a/src/os2/gauge.cpp +++ b/src/os2/gauge.cpp @@ -214,6 +214,8 @@ bool wxGauge::Create( ,nWidth ,nHeight ); + m_nWidth = nWidth; // Save for GetBestSize + m_nHeight = nHeight; ::WinShowWindow((HWND)GetHWND(), TRUE); delete pTextFont; return TRUE; @@ -304,4 +306,7 @@ void wxGauge::SetValue( ::WinInvalidateRect(GetHwnd(), &vRect, FALSE); } // end of wxGauge::SetValue - +wxSize wxGauge::DoGetBestSize() const +{ + return wxSize(m_nWidth,m_nHeight); +}