]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/carbon/statlmac.cpp
alpha support for Scale added
[wxWidgets.git] / src / mac / carbon / statlmac.cpp
index cf9f999fa0e3dd1bf1236a4ab59182e00ed5b0c9..92d31f27e27f168036cc36d5d9463b952802d3aa 100644 (file)
@@ -16,7 +16,7 @@
 // headers
 // ----------------------------------------------------------------------------
 
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
     #pragma implementation "statline.h"
 #endif
 
@@ -57,7 +57,7 @@ bool wxStaticLine::Create( wxWindow *parent,
 
     Rect bounds = wxMacGetBoundsForControl( this , pos , size ) ;
     m_peer = new wxMacControl() ;
-    verify_noerr(CreateSeparatorControl(MAC_WXHWND(parent->MacGetTopLevelWindowRef()),&bounds, *m_peer ) ) ;  
+    verify_noerr(CreateSeparatorControl(MAC_WXHWND(parent->MacGetTopLevelWindowRef()),&bounds, m_peer->GetControlRefAddr() ) ) ;  
 
     MacPostControlCreate(pos,size) ;