Condividi tramite


CDialogImpl::MapDialogRect

Converts (maps) the dialog-box units of the specified rectangle to screen units (pixels).

BOOL MapDialogRect( 
   LPRECT lpRect  
);

Parameters

  • lpRect
    Points to a CRect object or RECT structure that is to receive the client coordinates of the update that encloses the update region.

Return Value

Nonzero if the update succeeds; 0 if the update fails. To get extended error information, call GetLastError.

Remarks

The function replaces the coordinates in the specified RECT structure with the converted coordinates, which allows the structure to be used to create a dialog box or position a control within a dialog box.

Requirements

Header: atlwin.h

See Also

Reference

CDialogImpl Class

MapDialogRect