]> git.saurik.com Git - wxWidgets.git/blame - src/os2/statline.cpp
fix compile error - too many }
[wxWidgets.git] / src / os2 / statline.cpp
CommitLineData
a66ebb5b
DW
1/////////////////////////////////////////////////////////////////////////////
2// Name: msw/statline.cpp
3// Purpose: OS2 version of wxStaticLine class
4// Author: David Webster
5// Created: 10/23/99
6// Version: $Id$
7// Copyright: (c) 1999 David Webster
8// Licence: wxWindows licence
9/////////////////////////////////////////////////////////////////////////////
10
11// ============================================================================
12// declarations
13// ============================================================================
14
15// ----------------------------------------------------------------------------
16// headers
17// ----------------------------------------------------------------------------
18
19// For compilers that support precompilation, includes "wx.h".
20#include "wx/wxprec.h"
21
22#include "wx/statline.h"
23
24#if wxUSE_STATLINE
25
26#include "wx/os2/private.h"
27#include "wx/log.h"
28
29// ============================================================================
30// implementation
31// ============================================================================
32
33IMPLEMENT_DYNAMIC_CLASS(wxStaticLine, wxControl)
34
35// ----------------------------------------------------------------------------
36// wxStaticLine
37// ----------------------------------------------------------------------------
38
39bool wxStaticLine::Create( wxWindow *parent,
40 wxWindowID id,
41 const wxPoint &pos,
42 const wxSize &size,
43 long style,
44 const wxString &name)
45{
46 if ( !CreateBase(parent, id, pos, size, style, wxDefaultValidator, name) )
47 return FALSE;
48
49 parent->AddChild(this);
50
51 wxSize sizeReal = AdjustSize(size);
52
53// TODO:
54/*
55 m_hWnd = (WXHWND)::CreateWindow
56 (
57 wxT("STATIC"),
58 wxT(""),
59 WS_VISIBLE | WS_CHILD |
60 SS_GRAYRECT | SS_SUNKEN, // | SS_ETCHEDFRAME,
61 pos.x, pos.y, sizeReal.x, sizeReal.y,
62 GetWinHwnd(parent),
63 (HMENU)m_windowId,
64 wxGetInstance(),
65 NULL
66 );
67
68 if ( !m_hWnd )
69 {
70#ifdef __WXDEBUG__
71 wxLogDebug(wxT("Failed to create static control"));
72#endif
73 return FALSE;
74 }
75
76 SubclassWin(m_hWnd);
77
78 return TRUE;
79*/
80 return FALSE;
81}
82#endif
83