Print dialog with prntscreen
-
Hi, I need to print the SDI dialog and found the following code http://www.codeproject.com/printing/prntscreen.asp The code worked fine but the print out image is a kind of small. Does anyone know how to change the setting to print the bitmap image a bit larger if possible? Thanks, Kevin
-
Hi, I need to print the SDI dialog and found the following code http://www.codeproject.com/printing/prntscreen.asp The code worked fine but the print out image is a kind of small. Does anyone know how to change the setting to print the bitmap image a bit larger if possible? Thanks, Kevin
I found the answer. StretchDIBits( hDC, // hDC 10, // DestX 10, // DestY (int) sizePrn.cx, // nDestWidth (int) sizePrn.cy, // nDestHeight 0, // SrcX 0, // SrcY sizeClient.cx, // wSrcWidth sizeClient.cy, // wSrcHeight lpDIBBits, // lpBits &bmInfo, // lpBitsInfo DIB_RGB_COLORS, // wUsage SRCCOPY); // dwROP Change sizePrn.cx, sizePrn.cy can resize the print out. Kevin