X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a579926062c74ef4e5ff2f1ddfbd60bbb43efed5..3bf93e1e9ac6b61e5220967d2ada2d4faec4dd9c:/src/os2/bmpbuttn.cpp?ds=inline diff --git a/src/os2/bmpbuttn.cpp b/src/os2/bmpbuttn.cpp index e3ae729688..af6dae09c1 100644 --- a/src/os2/bmpbuttn.cpp +++ b/src/os2/bmpbuttn.cpp @@ -32,9 +32,7 @@ bool wxBitmapButton::Create( , const wxPoint& rPos , const wxSize& rSize , long lStyle -#if wxUSE_VALIDATORS , const wxValidator& rValidator -#endif , const wxString& rsName ) { @@ -79,7 +77,7 @@ bool wxBitmapButton::Create( m_hWnd = (WXHWND)::WinCreateWindow( GetHwndOf(pParent) ,WC_BUTTON - ,wxT("") + ,(PSZ)wxEmptyString ,ulOS2Style ,0, 0, 0, 0 ,GetHwndOf(pParent) @@ -113,7 +111,6 @@ bool wxBitmapButton::OS2OnDraw( return FALSE; wxBitmap* pBitmap; - RECTL vRect; bool bIsSelected = pUser->fsState & BDS_HILITED; wxClientDC vDc(this); @@ -134,7 +131,6 @@ bool wxBitmapButton::OS2OnDraw( // Centre the bitmap in the control area // int nX = 0; - int nY = 0; int nX1 = 0; int nY1 = 0; int nWidth = vDc.m_vRclPaint.xRight - vDc.m_vRclPaint.xLeft;