]>
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( wxWindow
*parent
,
50 if ( !CreateBase(parent
, id
, pos
, size
, style
, wxDefaultValidator
, name
) )
53 parent
->AddChild(this);
55 wxSize sizeReal
= AdjustSize(size
);
59 m_hWnd = (WXHWND)::CreateWindow
63 WS_VISIBLE | WS_CHILD |
64 SS_GRAYRECT | SS_SUNKEN, // | SS_ETCHEDFRAME,
65 pos.x, pos.y, sizeReal.x, sizeReal.y,
75 wxLogDebug(wxT("Failed to create static control"));