ListView_SetWorkAreas macro

Sets the working areas within a list-view control. You can use this macro or send the LVM_SETWORKAREAS message explicitly.

Syntax

void ListView_SetWorkAreas(
   hwnd,
   nWorkAreas,
   prc
);

Parameters

hwnd

Type: HWND

A handle to a list-view control.

nWorkAreas

Type: INT

The number of RECT structures in the array at lprc. The maximum number of working areas allowed is defined by the LV_MAX_WORKAREAS value.

prc

Type: LPRECT

A pointer to an array of RECT structures that contain the new working areas of the list-view control. Values in these structures are in client coordinates. If this parameter is NULL, the working area will be set to the client area of the control. nWorkAreas specifies the number of structures in this array.

Return value

None

Requirements

   
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header commctrl.h

See also

Using List-View Controls