Skip to content

Latest commit

 

History

History
68 lines (39 loc) · 1.85 KB

sb-getparts.md

File metadata and controls

68 lines (39 loc) · 1.85 KB
title description ms.assetid keywords topic_type api_name api_location api_type ms.topic ms.date
SB_GETPARTS message (Commctrl.h)
Retrieves a count of the parts in a status window. The message also retrieves the coordinate of the right edge of the specified number of parts.
2535f490-4d6b-468a-b13c-096941e61bf4
SB_GETPARTS message Windows Controls
apiref
SB_GETPARTS
Commctrl.h
HeaderDef
reference
05/31/2018

SB_GETPARTS message

Retrieves a count of the parts in a status window. The message also retrieves the coordinate of the right edge of the specified number of parts.

Parameters

wParam

Number of parts for which to retrieve coordinates. If this parameter is greater than the number of parts in the window, the message retrieves coordinates for existing parts only.

lParam

Pointer to an integer array that has the same number of elements as parts specified by wParam. Each element in the array receives the client coordinate of the right edge of the corresponding part. If an element is set to -1, the position of the right edge for that part extends to the right edge of the window. To retrieve the current number of parts, set this parameter to zero.

Return value

Returns the number of parts in the window.

Remarks

This message always returns the number of parts in the status bar.

Requirements

Requirement Value
Minimum supported client
Windows Vista [desktop apps only]
Minimum supported server
Windows Server 2003 [desktop apps only]
Header
Commctrl.h