The term address:
https://msdn.microsoft.com/en-us/library/6t1yfd35.aspx#CBitmap::CreateCompatibleBitmap
CodePudding user response:
HWND HWND=: : GetDesktopWindow ();//get the HWND of the screen.HDC hScreenDC=: : GetDC (hWnd);//get the screen HDC.
HDC MemDC=: : CreateCompatibleDC (hScreenDC);
M_Hbitmap=: : CreateCompatibleBitmap (hScreenDC u32W, u32H);
Can't use memDC GetDC is to be used for the dc