]>
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 // ----------------------------------------------------------------------------
19 // For compilers that support precompilation, includes "wx.h".
20 #include "wx/wxprec.h"
22 #include "wx/statline.h"
26 #include "wx/os2/private.h"
29 // ============================================================================
31 // ============================================================================
33 IMPLEMENT_DYNAMIC_CLASS(wxStaticLine
, wxControl
)
35 // ----------------------------------------------------------------------------
37 // ----------------------------------------------------------------------------
39 bool wxStaticLine::Create( wxWindow
*parent
,
46 if ( !CreateBase(parent
, id
, pos
, size
, style
, wxDefaultValidator
, name
) )
49 parent
->AddChild(this);
51 wxSize sizeReal
= AdjustSize(size
);
55 m_hWnd = (WXHWND)::CreateWindow
59 WS_VISIBLE | WS_CHILD |
60 SS_GRAYRECT | SS_SUNKEN, // | SS_ETCHEDFRAME,
61 pos.x, pos.y, sizeReal.x, sizeReal.y,
71 wxLogDebug(wxT("Failed to create static control"));