X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b62ca03d6f409732ca63c68a79b7ae81444222e5..6ba5438dda164146bf36ca729f8328332fae36b7:/samples/propsize/propsize.cpp diff --git a/samples/propsize/propsize.cpp b/samples/propsize/propsize.cpp index 17680e7f07..2cf73c7018 100644 --- a/samples/propsize/propsize.cpp +++ b/samples/propsize/propsize.cpp @@ -17,8 +17,8 @@ // headers // ---------------------------------------------------------------------------- #if defined(__GNUG__) && !defined(__APPLE__) - #pragma implementation "propsize.cpp" - #pragma interface "propsize.cpp" + #pragma implementation + #pragma interface #endif // For compilers that support precompilation, includes "wx/wx.h". @@ -164,9 +164,14 @@ MyFrame::MyFrame(const wxString& title, const wxPoint& pos, const wxSize& size) SetStatusText(_T("Resize the frame to see how controls react")); #endif // wxUSE_STATUSBAR -#define AddLine(orient) \ - Add( new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxSize(2,2), orient), \ - 0, wxEXPAND) +#if wxUSE_STATLINE + #define AddLine(orient) \ + Add( new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxSize(2,2), orient), \ + 0, wxEXPAND) +#else + #define AddLine(orient) \ + Add( 2, 2) +#endif // wxUSE_STATLINE #define AddButton(label,align) Add( \ new wxButton( this, wxID_ANY, label, wxDefaultPosition, wxSize(100,50)), \