16,548
社区成员




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);
}