Skip to content

Latest commit

 

History

History
78 lines (48 loc) · 1.75 KB

bn-clicked.md

File metadata and controls

78 lines (48 loc) · 1.75 KB
title description ms.assetid keywords topic_type api_name api_location api_type ms.topic ms.date
BN_CLICKED notification code (Winuser.h)
Sent when the user clicks a button. The parent window of the button receives this notification code through the WM\_COMMAND message.
74847549-b92f-4981-a979-d0b2a8a5539a
BN_CLICKED notification code Windows Controls
apiref
BN_CLICKED
Winuser.h
HeaderDef
reference
05/31/2018

BN_CLICKED notification code

Sent when the user clicks a button.

The parent window of the button receives this notification code through the WM_COMMAND message.

BN_CLICKED

    WPARAM wParam;
    LPARAM lParam;

Parameters

wParam

The LOWORD contains the button's control identifier. The HIWORD specifies the notification code.

lParam

A handle to the button.

Remarks

A disabled button does not send a BN_CLICKED notification code to its parent window.

Requirements

Requirement Value
Minimum supported client
Windows Vista [desktop apps only]
Minimum supported server
Windows Server 2003 [desktop apps only]
Header
Winuser.h (include Windows.h)

See also

Other Resources

HIWORD

LOWORD

WM_COMMAND