X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ad81651f00edc6f489d9b6a0839d316a964fd521..a1f7eb20e6cfbc3e3e4999b62639325bb43f9f81:/src/os2/statbmp.cpp diff --git a/src/os2/statbmp.cpp b/src/os2/statbmp.cpp index 5d674c3826..07856d8e84 100644 --- a/src/os2/statbmp.cpp +++ b/src/os2/statbmp.cpp @@ -9,6 +9,10 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// +#ifdef __GNUG__ +#pragma implementation "statbmp.h" +#endif + // For compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" @@ -67,13 +71,11 @@ bool wxStaticBitmap::Create( m_bIsIcon = rBitmap.IsKindOf(CLASSINFO(wxIcon)); - // TODO: create static bitmap control - const wxChar* zClassname = wxT("WX_STATIC"); int nWinstyle = m_bIsIcon ? SS_ICON : SS_BITMAP; m_hWnd = (WXHWND)::WinCreateWindow( pParent->GetHWND() - ,zClassname - ,wxT("") + ,WC_STATIC + ,rName.c_str() ,nWinstyle | WS_VISIBLE ,0,0,0,0 ,pParent->GetHWND() @@ -89,7 +91,7 @@ bool wxStaticBitmap::Create( // Subclass again for purposes of dialog editing mode SubclassWin(m_hWnd); - SetFont(GetParent()->GetFont()); + SetFont(*wxSMALL_FONT); SetSize(nX, nY, nWidth, nHeight); return(FALSE); } @@ -168,3 +170,11 @@ void wxStaticBitmap::SetImage( ::WinInvalidateRect(GetHwndOf(GetParent()), &vRect, TRUE); } +MRESULT wxStaticBitmap::OS2WindowProc( + WXUINT uMsg +, WXWPARAM wParam +, WXLPARAM lParam +) +{ + return wxWindow::OS2WindowProc(uMsg, wParam, lParam); +} // end of wxStaticBitmap::OS2WindowProc