PGM_GETBUTTONSTATE message

Retrieves the state of the specified button in a pager control. You can send this message explicitly or use the Pager_GetButtonState macro.

Parameters

wParam

Must be zero.

lParam

Indicates which button to retrieve the state for. This can be one of the following values:

Value Meaning
PGB_TOPORLEFT
Indicates the top button in a PGS_VERT pager control or the left button in a PGS_HORZ pager control.
PGB_BOTTOMORRIGHT
Indicates the bottom button in a PGS_VERT pager control or the right button in a PGS_HORZ pager control.

Return value

Returns the state of the button specified in lParam. This will be one or more of the following values (if more than one value is returned they will be combined using a bitwise OR):

Return code Description
PGF_INVISIBLE
The button is not visible.
PGF_NORMAL
The button is in normal state.
PGF_GRAYED
The button is in grayed state.
PGF_DEPRESSED
The button is in pressed state.
PGF_HOT
The button is in hot state.

Requirements

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