]>
git.saurik.com Git - wxWidgets.git/blob - src/os2/statline.cpp
   1 ///////////////////////////////////////////////////////////////////////////// 
   2 // Name:        src/os2/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" 
  24 #include "wx/statline.h" 
  30 #include "wx/os2/private.h" 
  32 // ============================================================================ 
  34 // ============================================================================ 
  36 IMPLEMENT_DYNAMIC_CLASS(wxStaticLine
, wxControl
) 
  38 // ---------------------------------------------------------------------------- 
  40 // ---------------------------------------------------------------------------- 
  42 bool wxStaticLine::Create( 
  48 , const wxString
&                   rsName
 
  51     wxSize                          vSize 
= AdjustSize(rSize
); 
  53     if ( !CreateControl( pParent
 
  62     if (!OS2CreateControl( wxT("STATIC") 
  72     vColour
.Set(wxString(wxT("GREY"))); 
  74     LONG                            lColor 
= (LONG
)vColour
.GetPixel(); 
  76     ::WinSetPresParam( m_hWnd
 
  82 } // end of wxStaticLine::Create 
  84 WXDWORD 
wxStaticLine::OS2GetStyle( 
  90     // We never have border 
  92     lStyle 
&= ~wxBORDER_MASK
; 
  93     lStyle 
|= wxBORDER_NONE
; 
  95     WXDWORD                         dwStyle 
= wxControl::OS2GetStyle( lStyle
 
  99     // Add our default styles 
 101     return dwStyle 
| WS_CLIPSIBLINGS
; 
 103 #endif // wxUSE_STATLINE