X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/77ffb5937e89927b621128789401db8921fe580f..7ea1c917764fb2588fe1aadc75c49ba300f8cb2f:/src/os2/gauge.cpp diff --git a/src/os2/gauge.cpp b/src/os2/gauge.cpp index ca7b75d058..972246d597 100644 --- a/src/os2/gauge.cpp +++ b/src/os2/gauge.cpp @@ -6,7 +6,7 @@ // Created: 10/06/99 // RCS-ID: $Id$ // Copyright: (c) David Webster -// Licence: wxWidgets licence +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// #include "wx/wxprec.h" @@ -154,8 +154,8 @@ bool wxGauge::Create( #endif if (pParent) pParent->AddChild(this); - m_backgroundColour.Set(wxString("LIGHT GREY")); - m_foregroundColour.Set(wxString("NAVY")); + m_backgroundColour.Set(wxString(wxT("LIGHT GREY"))); + m_foregroundColour.Set(wxString(wxT("NAVY"))); m_nRangeMax = nRange; m_nGaugePos = 0; @@ -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); +}