]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/gauge.cpp
fixing RawBitmap access
[wxWidgets.git] / src / os2 / gauge.cpp
index 6d1486b192dc6228516c60b922f0d9561cf1a686..972246d597264d076c98d27c67d3de6cd30ab49f 100644 (file)
@@ -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);
+}