BN_CLICKED

This message is sent when the user taps the pen on the touch screen. The parent window of the button receives this notification message through the WM_COMMAND message. Unlike the other button notification messages, this message is intended for applications written for any version of Windows.

At a Glance

Header file: Winuser.h
Windows CE versions: 1.0 and later

Syntax

BN_CLICKED idButton = (int)LOWORD(wParam);
hwndButton = (HWND) lParam;

Parameters

idButton

Identifier of the button.

hwndButton

Handle to the button.

Remarks

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

See Also

WM_COMMAND