here is the code, i am using vc++
i am having the handle to the image but for BitBlt i have to use hdc for this image
GetDC() is only use for handle to the window, i want something simillar to this.
pls. tell me how to solve this problem
Code:
hbm = LoadImage(NULL,"msdn.bmp",IMAGE_BITMAP,80,40,LR_LOADFROMFILE); /* hdcSrc = GetDC((HWND)hbm);*/ BitBlt(hdc, 0, 0, 80, 40, hdcSrc, 0, 0, SRCCOPY);
GetDC() is only use for handle to the window, i want something simillar to this.
pls. tell me how to solve this problem
Comment