]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/listctrl/listtest.cpp
Exclude wxMSW-only code from wxUniversal build under Windows.
[wxWidgets.git] / samples / listctrl / listtest.cpp
index 966cbdb9edf1597cfe9ec74fb32731a7be50e228..b8480dc17ad93db57f4f29dfce981d5b2fd97a00 100644 (file)
@@ -845,7 +845,7 @@ void MyFrame::OnAdd(wxCommandEvent& WXUNUSED(event))
 void MyFrame::OnEdit(wxCommandEvent& WXUNUSED(event))
 {
     // demonstrate cancelling editing: this currently is wxMSW-only
-#ifdef __WXMSW__
+#if defined(__WXMSW__) && !defined(__WXUNIVERSAL__)
     if ( m_listCtrl->GetEditControl() )
     {
         m_listCtrl->EndEditLabel(true);