Compartilhar via


CPageSetupDialog::GetMargins

Call this function after a call to DoModal to retrieve the margins of the printer device driver.

void GetMargins( 
   LPRECT lpRectMargins, 
   LPRECT lpRectMinMargins  
) const;

Parameters

  • lpRectMargins
    Pointer to a RECT structure or CRect object that describes (in 1/1000 inches or 1/100 mm) the print margins for the currently selected printer. Pass NULL for this parameter, if you are not interested in this rectangle.

  • lpRectMinMargins
    Pointer to a RECT structure or CRect object that describes (in 1/1000 inches or 1/100 mm) the minimum print margins for the currently selected printer. Pass NULL for this parameter, if you are not interested in this rectangle.

Requirements

Header: afxdlgs.h

See Also

Reference

CPageSetupDialog Class

Hierarchy Chart