void wxClipboard::Close() { m_isOpened = false; // OLE closes clipboard for us #if !wxUSE_OLE_CLIPBOARD wxCloseClipboard(); #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 }
void wxClipboard::Close() { wxCloseClipboard(); }