]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/statline.cpp
added wx/defs.h include to correct compilation issues under Mac OS X
[wxWidgets.git] / src / generic / statline.cpp
index 21ad8938524f9b29ffbf05684c485deef18698ee..964385982f45ed34a142b25c3e45820f73fedd39 100644 (file)
@@ -47,7 +47,7 @@ bool wxStaticLine::Create( wxWindow *parent,
                            long style,
                            const wxString &name)
 {
                            long style,
                            const wxString &name)
 {
-    if ( !CreateBase(parent, id, pos, size, style, name) )
+    if ( !CreateBase(parent, id, pos, size, style, wxDefaultValidator, name) )
         return FALSE;
 
     // ok, this is ugly but it's better than nothing: use a thin static box to
         return FALSE;
 
     // ok, this is ugly but it's better than nothing: use a thin static box to
@@ -55,7 +55,13 @@ bool wxStaticLine::Create( wxWindow *parent,
 
     wxSize sizeReal = AdjustSize(size);
 
 
     wxSize sizeReal = AdjustSize(size);
 
-    m_statbox = new wxStaticBox(parent, id, _T(""), pos, sizeReal, style, name);
+    m_statbox = new wxStaticBox(parent, id, wxT(""), pos, sizeReal, style, name);
 
     return TRUE;
 }
 
     return TRUE;
 }
+
+
+WXWidget wxStaticLine::GetMainWidget() const
+{
+    return m_statbox->GetMainWidget();
+}