我想知道如何从图片控件(mfcc++)获得HBITMAP。我尝试了这个代码,但它没有工作:
HBITMAP hBitmap1 =
(HBITMAP)SendMessage(GetDlgItem(m_hWnd,IDC_VIEW),STM_GETIMAGE,
(WPARAM)IMAGE_BITMAP,(LPARAM) 0);
HBITMAP hBitmap2 = (HBITMAP)CopyImage (hBitmap1,
IMAGE_BITMAP, 0, 0, LR_COPYRETURNORG);
谢谢
在CStatic控件上调用GetBitmap