bool wxClipboard::Open() { // OLE opens clipboard for us m_isOpened = true; #if wxUSE_OLE_CLIPBOARD return true; #else return wxOpenClipboard(); #endif }
bool wxClipboard::Open() { // Get clipboard id for HTML format... if(!gs_htmlcfid) gs_htmlcfid = RegisterClipboardFormat(wxT("HTML Format")); // OLE opens clipboard for us m_isOpened = true; #if wxUSE_OLE_CLIPBOARD return true; #else return wxOpenClipboard(); #endif }
bool wxMetafile::SetClipboard(int width, int height) { #if !wxUSE_CLIPBOARD wxUnusedVar(width); wxUnusedVar(height); return false; #else if (!m_refData) return false; bool alreadyOpen=wxClipboardOpen(); if (!alreadyOpen) { wxOpenClipboard(); if (!wxEmptyClipboard()) return false; } bool success = wxSetClipboardData(wxDF_METAFILE, this, width,height); if (!alreadyOpen) wxCloseClipboard(); return (bool) success; #endif }
bool wxClipboard::Open() { return wxOpenClipboard(); }