CString 取剪辑版文本(){ CString strTmp; strTmp.Empty(); if (::OpenClipboard(NULL)) { UINT nFormat = (sizeof(TCHAR) == sizeof(WCHAR) ? CF_UNICODETEXT : CF_TEXT); HGLOBAL hClip = GetClipboardData(nFormat); // typedef HANDLE HGLOBAL if (hClip) { char* pBuff = (char*)GlobalLock(hClip); GlobalUnlock(hClip); strTmp.Format(_T("%s"), pBuff); } CloseClipboard(); } return strTmp; }