#if wxUSE_DATAOBJ
#include "wx/dataobj.h"
-
-// No: don't necessarily use OLE clipboard with data object
-#if 0
- // use OLE clipboard
- #define wxUSE_OLE_CLIPBOARD 1
#endif
+
+#if wxUSE_OLE
+ // use OLE clipboard
+ #define wxUSE_OLE_CLIPBOARD 1
#else // !wxUSE_DATAOBJ
// use Win clipboard API
#define wxUSE_OLE_CLIPBOARD 0
// build the list of supported formats
size_t nFormats = data.GetFormatCount(wxDataObject::Set);
wxDataFormat format;
- wxDataFormat *formats;
+ wxDataFormat *formats;
if ( nFormats == 1 )
{
// the most common case
#endif // wxUSE_OLE_CLIPBOARD/wxUSE_DATAOBJ
}
-#else
-// #error "Please turn wxUSE_CLIPBOARD on to compile this file."
#endif // wxUSE_CLIPBOARD