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   hwndLV,
   INT    nWorkAreas,
   LPRECT lprc
);

Parameters

hwndLV

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.

lprc

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

This macro does not return a value.

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Commctrl.h

See also

Using List-View Controls

 

 

Show: