]> git.saurik.com Git - wxWidgets.git/blame - src/os2/statline.cpp
1. more corrections for ref counted editors/renderers (doesn't crash any more,
[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
aa213887
SN
19#ifdef __GNUG__
20 #pragma implementation "statline.h"
21#endif
22
a66ebb5b
DW
23// For compilers that support precompilation, includes "wx.h".
24#include "wx/wxprec.h"
25
26#include "wx/statline.h"
27
28#if wxUSE_STATLINE
29
30#include "wx/os2/private.h"
31#include "wx/log.h"
32
33// ============================================================================
34// implementation
35// ============================================================================
36
37IMPLEMENT_DYNAMIC_CLASS(wxStaticLine, wxControl)
38
39// ----------------------------------------------------------------------------
40// wxStaticLine
41// ----------------------------------------------------------------------------
42
43bool wxStaticLine::Create( wxWindow *parent,
44 wxWindowID id,
45 const wxPoint &pos,
46 const wxSize &size,
47 long style,
48 const wxString &name)
49{
50 if ( !CreateBase(parent, id, pos, size, style, wxDefaultValidator, name) )
51 return FALSE;
52
53 parent->AddChild(this);
54
55 wxSize sizeReal = AdjustSize(size);
56
57// TODO:
58/*
59 m_hWnd = (WXHWND)::CreateWindow
60 (
61 wxT("STATIC"),
62 wxT(""),
63 WS_VISIBLE | WS_CHILD |
64 SS_GRAYRECT | SS_SUNKEN, // | SS_ETCHEDFRAME,
65 pos.x, pos.y, sizeReal.x, sizeReal.y,
66 GetWinHwnd(parent),
67 (HMENU)m_windowId,
68 wxGetInstance(),
69 NULL
70 );
71
72 if ( !m_hWnd )
73 {
74#ifdef __WXDEBUG__
75 wxLogDebug(wxT("Failed to create static control"));
76#endif
77 return FALSE;
78 }
79
80 SubclassWin(m_hWnd);
81
82 return TRUE;
83*/
84 return FALSE;
85}
86#endif
87