// Author: David Webster
// Modified by:
// Created: 10/13/99
-// RCS-ID: $Id$
// Copyright: (c) David Webster
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
#include "wx/utils.h"
#include "wx/intl.h"
#include "wx/log.h"
+ #include "wx/dataobj.h"
#endif
#if wxUSE_METAFILE
// wxDataObject is tied to OLE/drag and drop implementation,
// therefore so is wxClipboard :-(
-#if wxUSE_DRAG_AND_DROP
- #include "wx/dataobj.h"
-
-// static bool wxSetClipboardData(wxDataObject *data);
-#endif
// ===========================================================================
// implementation
gs_wxClipboardIsOpen = ::OpenClipboard((HWND)win->GetHWND()) != 0;
if ( !gs_wxClipboardIsOpen )
+ {
wxLogSysError(_("Failed to open the clipboard."));
+ }
return gs_wxClipboardIsOpen;
}
else
{
- wxLogDebug(wxT("Can not open clipboard without a main window."));
+ wxLogDebug(wxT("Cannot open clipboard without a main window."));
return false;
}