How i can save DC(CPaintDC) or CDC in CBitmap?
-
How i can save DC or CDC in CBitmap?? i'm using following code to save CPaintDC (dc) into CDC_(cdc)_ in OnPaint() function...
cdc=GetWindowDC();
cdc->BitBlt(100,100,600,600,cdc,0,0,SRCCOPY);& now i want to save CDC in CBitmap file...so i can use it in CImage attach function....i have to use CreateCompatableBitmap function or CreateDIBSection Function or anything else...?? :confused:
-
How i can save DC or CDC in CBitmap?? i'm using following code to save CPaintDC (dc) into CDC_(cdc)_ in OnPaint() function...
cdc=GetWindowDC();
cdc->BitBlt(100,100,600,600,cdc,0,0,SRCCOPY);& now i want to save CDC in CBitmap file...so i can use it in CImage attach function....i have to use CreateCompatableBitmap function or CreateDIBSection Function or anything else...?? :confused:
-
Why not try some of the suggestions you have been offered? Endlessly reposting this question will not change the design of the Windows API, GDI or MFC.
It's time for a new signature.