1 ///////////////////////////////////////////////////////////////////////////// 
   2 // Name:        src/mac/classic/statlmac.cpp 
   3 // Purpose:     a generic wxStaticLine class 
   4 // Author:      Vadim Zeitlin 
   7 // Copyright:   (c) 1998 Vadim Zeitlin 
   8 // Licence:     wxWindows licence 
   9 ///////////////////////////////////////////////////////////////////////////// 
  11 // ============================================================================ 
  13 // ============================================================================ 
  15 // ---------------------------------------------------------------------------- 
  17 // ---------------------------------------------------------------------------- 
  19 // For compilers that support precompilation, includes "wx.h". 
  20 #include "wx/wxprec.h" 
  26 #include "wx/statline.h" 
  29     #include "wx/statbox.h" 
  32 #include "wx/mac/uma.h" 
  34 // ============================================================================ 
  36 // ============================================================================ 
  38 IMPLEMENT_DYNAMIC_CLASS(wxStaticLine
, wxControl
) 
  40 // ---------------------------------------------------------------------------- 
  42 // ---------------------------------------------------------------------------- 
  44 bool wxStaticLine::Create( wxWindow 
*parent
, 
  51     if ( !wxStaticLineBase::Create(parent
, id
, pos
, size
, 
  52                                    style
, wxDefaultValidator
, name
) ) 
  58     MacPreControlCreate( parent 
, id 
,  wxEmptyString 
, pos 
, size 
,style
, wxDefaultValidator 
, name 
, &bounds 
, title 
) ; 
  60     m_macControl 
= (WXWidget
) ::NewControl( MAC_WXHWND(parent
->MacGetRootWindow()) , &bounds 
, title 
, false , 0 , 0 , 1, 
  61           kControlSeparatorLineProc 
, (long) this ) ; 
  63     MacPostControlCreate() ;