16,471
社区成员
发帖
与我相关
我的任务
分享
CPrintDialog dlg(FALSE);
if(dlg.DoModal() == PD_RESULT_PRINT)
{
HDC hDC = dlg.GetPrinterDC( );
int cx = GetDeviceCaps(hDC, HORZSIZE);
int cy = GetDeviceCaps(hDC, VERTSIZE);
TRACE(_T("cx=%d, cy=%d\n"), cx, cy);
DeleteDC(hDC);
}