]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/oleauto/oleauto.cpp
Disabled horizontal report mode scrolling in wxListCtrl
[wxWidgets.git] / samples / oleauto / oleauto.cpp
index 05e9da16ad510c0f2fcd19d32a163161d0242291..b4021b93ae9cba88aea52a3d12bb9004a1f78323 100644 (file)
@@ -211,10 +211,12 @@ void MyFrame::OnTest(wxCommandEvent& WXUNUSED(event))
                wxMessageBox("Could not set active cell value.");
                return;
        }
-       if (!excelObject.PutProperty("ActiveCell.Font.Bold", (bool) TRUE))
+#ifdef HAVE_BOOL
+       if (!excelObject.PutProperty("ActiveCell.Font.Bold", wxVariant((bool) TRUE)) )
        {
                wxMessageBox("Could not put Bold property to active cell.");
                return;
        }
+#endif
 }