]>
git.saurik.com Git - wxWidgets.git/blob - src/os2/statline.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: msw/statline.cpp
3 // Purpose: OS2 version of wxStaticLine class
4 // Author: David Webster
7 // Copyright: (c) 1999 David Webster
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
11 // ============================================================================
13 // ============================================================================
15 // ----------------------------------------------------------------------------
17 // ----------------------------------------------------------------------------
20 #pragma implementation "statline.h"
23 // For compilers that support precompilation, includes "wx.h".
24 #include "wx/wxprec.h"
26 #include "wx/statline.h"
30 #include "wx/os2/private.h"
33 // ============================================================================
35 // ============================================================================
37 IMPLEMENT_DYNAMIC_CLASS(wxStaticLine
, wxControl
)
39 // ----------------------------------------------------------------------------
41 // ----------------------------------------------------------------------------
43 bool wxStaticLine::Create(
49 , const wxString
& rsName
52 if (!CreateBase( pParent
62 pParent
->AddChild(this);
64 wxSize vSizeReal
= AdjustSize(rSize
);
66 m_hWnd
= (WXHWND
)::WinCreateWindow( GetWinHwnd(pParent
)
69 ,WS_VISIBLE
| SS_TEXT
| DT_VCENTER
| DT_CENTER
82 wxLogDebug(wxT("Failed to create static control"));
92 } // end of wxStaticLine::Create
94 #endif // wxUSE_STATLINE