Hi, guys --
Easy question, but ...
There is pd As PRINTDLGAPI, received by PrintDlg(pd), and "free" true-colour hBmp.
I have troubles with following
Return values are correct, and even a printer is color.
Print job appears, but without my picture.
At the same time
works fine on the screen.
What am I doing wrong ?
------------------
E-MAIL: [email protected]
Easy question, but ...
There is pd As PRINTDLGAPI, received by PrintDlg(pd), and "free" true-colour hBmp.
I have troubles with following
Code:
Local hBmpDC As Long hBmpDC = CreateCompatibleDC(pd.hDC) SelectObject hBmpDC, hMemBmp BitBlt pd.hDC, 0, 0, _ rcfConsole.nRight - rcfConsole.nLeft, rcfConsole.nBottom - rcfConsole.nTop, _ hBmpDC, 0, 0, %SRCCOPY
Print job appears, but without my picture.
At the same time
Code:
Local pdHDC As Long pDhDC = GetWindowDC(GetDesktopWindow) hBmpDC = CreateCompatibleDC(pdhDC) SelectObject hBmpDC, hMemBmp BitBlt pdhDC, 0, 0, _ rcfConsole.nRight - rcfConsole.nLeft, rcfConsole.nBottom - rcfConsole.nTop, _ hBmpDC, 0, 0, %SRCCOPY) ReleaseDC GetDesktopWindow, pdHdc
What am I doing wrong ?
------------------
E-MAIL: [email protected]
Comment