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


CListCtrl::SetWorkAreas

Sets the area where icons can be displayed in a list view control.

void SetWorkAreas(
   int nWorkAreas,
   LPRECT lpRect 
);

Параметры

  • nWorkAreas
    The number of RECT structures (or CRect objects) in the array pointed to by lpRect.

  • lpRect
    The address of an array of RECT structures (or CRect objects) that specify the new work areas of the list view control. These areas must be specified in client coordinates. If this parameter is NULL, the working area will be set to the client area of the control.

Заметки

This member function implements the behavior of the Win32 macro, ListView_SetWorkAreas, as described in the Windows SDK.

Пример

// Remove all working areas.
m_myListCtrl.SetWorkAreas(0, NULL);

Требования

Header: afxcmn.h

См. также

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

CListCtrl Class

CListCtrl Members

Hierarchy Chart