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;
}
// enumerate all explicit formats on the clipboard.
// note that this does not include implicit / synthetic (automatically
// converted) formats.
-#ifdef __WXDEBUG__
+#if wxDEBUG_LEVEL >= 2
// get the format enumerator
IEnumFORMATETC *pEnumFormatEtc = NULL;
hr = pDataObject->EnumFormatEtc(DATADIR_GET, &pEnumFormatEtc);
pEnumFormatEtc->Release();
}
-#endif // Debug
+#endif // wxDEBUG_LEVEL >= 2
STGMEDIUM medium;
// stop at the first valid format found on the clipboard