- sizer3->Add( new wxStaticLine(this, -1), 0, wxGROW | wxLEFT | wxRIGHT, 10 );
- sizer3->Add( sizer2, 1, wxGROW | wxCENTRE | wxALL, 5 );
- sizer3->Add( new wxStaticLine(this, -1), 0, wxGROW | wxLEFT | wxRIGHT, 10 );
+#if wxUSE_STATLINE
+ sizer3->Add( new wxStaticLine(this, wxID_ANY), 0, wxGROW | wxLEFT | wxRIGHT, 10 );
+#endif // wxUSE_STATLINE
+ sizer3->Add( sizer2, 1, wxGROW | wxALL, 5 );
+#if wxUSE_STATLINE
+ sizer3->Add( new wxStaticLine(this, wxID_ANY), 0, wxGROW | wxLEFT | wxRIGHT, 10 );
+#endif // wxUSE_STATLINE