]>
git.saurik.com Git - wxWidgets.git/blob - src/msw/statline.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: msw/statline.cpp
3 // Purpose: MSW version of wxStaticLine class
4 // Author: Vadim Zeitlin
7 // Copyright: (c) 1998 Vadim Zeitlin
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"
30 #include "wx/statline.h"
32 #include "wx/msw/private.h"
34 // ============================================================================
36 // ============================================================================
38 IMPLEMENT_DYNAMIC_CLASS(wxStaticLine
, wxControl
)
40 // ----------------------------------------------------------------------------
42 // ----------------------------------------------------------------------------
44 bool wxStaticLine::Create( wxWindow
*parent
,
51 if ( !CreateBase(parent
, id
, pos
, size
, style
, name
) )
54 parent
->AddChild(this);
56 wxSize sizeReal
= AdjustSize(size
);
58 m_hWnd
= (WXHWND
)::CreateWindow
62 WS_VISIBLE
| WS_CHILD
|
63 SS_GRAYRECT
| SS_SUNKEN
,// | SS_ETCHEDFRAME,
64 pos
.x
, pos
.y
, sizeReal
.x
, sizeReal
.y
,
73 wxLogDebug(_T("Failed to create static control"));