Why can't I directly send an HBIMAP from a CImage to clipboard?
问题 I'm working on a small widget, screen capture stuff on Windows. The core of this program is like the following (I found it on the Internet). First derive from CImage, then add a member function to do this: BOOL CScreenImage::CaptureRect(const CRect& rect) { // detach and destroy the old bitmap if any attached CImage::Destroy(); // create a screen and a compatible memory device context HDC hDCScreen = ::CreateDC(_T("DISPLAY"), NULL, NULL, NULL); HDC hDCMem = ::CreateCompatibleDC(hDCScreen); //