Поделиться через


CDialogImpl::MapDialogRect

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

BOOL MapDialogRect(
   LPRECT lpRect 
);

Параметры

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

Возвращаемое значение

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

Заметки

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.

Требования

Header: atlwin.h

См. также

Основные понятия

CDialogImpl Class

CDialogImpl Members

MapDialogRect