]>
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 // ---------------------------------------------------------------------------- 
  20     #pragma implementation "statline.h" 
  23 // For compilers that support precompilation, includes "wx.h". 
  24 #include "wx/wxprec.h" 
  26 #include "wx/statline.h" 
  30 #include "wx/os2/private.h" 
  33 // ============================================================================ 
  35 // ============================================================================ 
  37 IMPLEMENT_DYNAMIC_CLASS(wxStaticLine
, wxControl
) 
  39 // ---------------------------------------------------------------------------- 
  41 // ---------------------------------------------------------------------------- 
  43 bool wxStaticLine::Create( 
  49 , const wxString
&                   rsName
 
  52     wxSize                          vSize 
= AdjustSize(rSize
); 
  54     if ( !CreateControl( pParent
 
  63     if (!OS2CreateControl( "STATIC" 
  73     vColour
.Set(wxString("GREY")); 
  75     LONG                            lColor 
= (LONG
)vColour
.GetPixel(); 
  77     ::WinSetPresParam( m_hWnd
 
  83 } // end of wxStaticLine::Create 
  85 WXDWORD 
wxStaticLine::OS2GetStyle( 
  91     // We never have border 
  93     lStyle 
&= ~wxBORDER_MASK
; 
  94     lStyle 
|= wxBORDER_NONE
; 
  96     WXDWORD                         dwStyle 
= wxControl::OS2GetStyle( lStyle
 
 100     // Add our default styles 
 102     return dwStyle 
| WS_CLIPSIBLINGS
; 
 104 #endif // wxUSE_STATLINE