]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/statbmp.cpp
use wxLogFatalError, not wxFatalError
[wxWidgets.git] / src / os2 / statbmp.cpp
index d06a109a0eadb887d5426915554fd09121007999..07856d8e84d92976df405df0c72092ba8c1ea70b 100644 (file)
@@ -71,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()