真是的
这么简单的问题
HBITMAP hNull;
HBITMAP hBitmap;
HDC hScreenDC;
HDC hDC;
hScreenDC=GetDC(NULL)
hDC=CreateCompatibleDC(hScreenDC);
hBitmap=CreateCompatibleBitmap(hScreenDC,GetSystemMetrics(SM_CXSCREEN),GetSystemMetrics(SM_CYSCREEN));
hNull=(HBITMAP)SelectObject(hDC,hBitmap);
BitBlt(hDC,0,0,GetSystemMetrics(SM_CXSCREEN),GetSystemMetrics(SM_CYSCREEN),hScreenDC,0,0,SRCCOPY);
OpenClipboard...
Put the hBitmap to clipboard
CloseClipboard...
SelectObject(hDC,hNull);
//don't delete hBitmap
DeleteDC(hDC);
ReleaseDC(hScreenDC)
.......Understand......................