git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3328
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
#ifndef _WX_OLEDATAOBJ_H
#define _WX_OLEDATAOBJ_H
#ifndef _WX_OLEDATAOBJ_H
#define _WX_OLEDATAOBJ_H
// ----------------------------------------------------------------------------
// wxDataFormat identifies the single format of data
// ----------------------------------------------------------------------------
// ----------------------------------------------------------------------------
// wxDataFormat identifies the single format of data
// ----------------------------------------------------------------------------
- wxBitmapDataObject() {};
+ wxBitmapDataObject() {}
wxBitmapDataObject(const wxBitmap& bitmap): m_bitmap(bitmap) {}
void SetBitmap(const wxBitmap& bitmap) { m_bitmap = bitmap; }
wxBitmap GetBitmap() const { return m_bitmap; }
wxBitmapDataObject(const wxBitmap& bitmap): m_bitmap(bitmap) {}
void SetBitmap(const wxBitmap& bitmap) { m_bitmap = bitmap; }
wxBitmap GetBitmap() const { return m_bitmap; }
#ifdef __GNUG__
#pragma interface
#endif
#ifdef __GNUG__
#pragma interface
#endif
#if !wxUSE_DRAG_AND_DROP
#error "You should #define wxUSE_DRAG_AND_DROP to 1 to compile this file!"
#endif //WX_DRAG_DROP
#if !wxUSE_DRAG_AND_DROP
#error "You should #define wxUSE_DRAG_AND_DROP to 1 to compile this file!"
#endif //WX_DRAG_DROP
#endif
#include "wx/defs.h"
#endif
#include "wx/defs.h"
+#ifdef wxUSE_NORLANDER_HEADERS
+#include <ole2.h>
+#endif
// ============================================================================
// General purpose functions and macros
// ============================================================================
// ============================================================================
// General purpose functions and macros
// ============================================================================
#ifdef __GNUG__
#pragma interface "uuid.h"
#endif
#ifdef __GNUG__
#pragma interface "uuid.h"
#endif
// ------------------------------------------------------------------
// UUID (Universally Unique IDentifier) definition
// ------------------------------------------------------------------
// ------------------------------------------------------------------
// UUID (Universally Unique IDentifier) definition
// ------------------------------------------------------------------
#endif
// OLE is used for drag-and-drop, clipboard, OLE Automation...
#endif
// OLE is used for drag-and-drop, clipboard, OLE Automation...
+#ifndef wxUSE_NORLANDER_HEADERS
#if defined(__GNUWIN32__) || defined(__SC__) || defined(__SALFORDC__)
#undef wxUSE_OLE
#define wxUSE_OLE 0
#endif // broken compilers
#if defined(__GNUWIN32__) || defined(__SC__) || defined(__SALFORDC__)
#undef wxUSE_OLE
#define wxUSE_OLE 0
#endif // broken compilers
#if wxUSE_OLE
#include <ole2.h>
#if wxUSE_OLE
#include <ole2.h>
while (!SetMessageQueue(iMsg) && (iMsg -= 8))
;
#endif // Win16
while (!SetMessageQueue(iMsg) && (iMsg -= 8))
;
#endif // Win16
// we need to initialize OLE library
if ( FAILED(::OleInitialize(NULL)) )
wxLogError(_("Cannot initialize OLE"));
// we need to initialize OLE library
if ( FAILED(::OleInitialize(NULL)) )
wxLogError(_("Cannot initialize OLE"));
#include "wx/msw/private.h"
#include "wx/msw/private.h"
+#include <wtypes.h>
+#include <unknwn.h>
+#include <ole2.h>
+#define _huge
#include <ole2ver.h>
#include <oleauto.h>
#include <ole2ver.h>
#include <oleauto.h>
#if defined(__BORLANDC__)
#pragma hdrstop
#endif
#if defined(__BORLANDC__)
#pragma hdrstop
#endif
+#ifndef WX_PRECOMP
+#include "wx/intl.h"
+#endif
-#if defined(__WIN32__) && !defined(__GNUWIN32__)
+#if defined(__WIN32__) && !defined(__GNUWIN32__) || defined(wxUSE_NORLANDER_HEADERS)
#include "wx/log.h"
#include "wx/dataobj.h"
#include <windows.h>
#include "wx/log.h"
#include "wx/dataobj.h"
#include <windows.h>
+#ifdef wxUSE_NORLANDER_HEADERS
+ #include <ole2.h>
+#endif
#include <ole2.h>
#include <olestd.h>
#endif
#include <ole2.h>
#include <olestd.h>
#endif
#if defined(__BORLANDC__)
#pragma hdrstop
#endif
#if defined(__BORLANDC__)
#pragma hdrstop
#endif
+#ifndef WX_PRECOMP
+#include "wx/window.h"
+#endif
#include "wx/msw/ole/dropsrc.h"
#include <windows.h>
#include "wx/msw/ole/dropsrc.h"
#include <windows.h>
+#ifdef wxUSE_NORLANDER_HEADERS
+#include <ole2.h>
+#endif
#ifndef __WIN32__
#include <ole2.h>
#ifndef __WIN32__
#include <ole2.h>