Fit into the A4 Paper
C / C++ / MFC
1
Posts
1
Posters
0
Views
1
Watching
-
I am trying to adjust the printed image size fit into the paper size which is about A4. I have tried to change those parameters for GetDeviceCaps functions. seemingly, I can't get the right size. Does anyone have solution to this? if( pInfo ) { CClientDC dc( this ); pDC->SetMapMode(MM_ANISOTROPIC); CSize sz( dc.GetDeviceCaps(LOGPIXELSX), dc.GetDeviceCaps(LOGPIXELSY) ); pDC->SetWindowExt( sz ); sz = CSize( pDC->GetDeviceCaps(LOGPIXELSX),pDC->GetDeviceCaps(LOGPIXELSY) ); pDC->SetViewportExt( sz ); } shi