PushButton

PushButtonHitTest

Identify the part of the button at a screen position

Syntax

Signature
int             PushButtonHitTest( PushButton *pushButton, int row, int col );

Arguments

pushButton the push button.

row, col the screen row and column to test.

Return value

HTCLIENT on a one-row button or in the interior of a framed button, a frame constant on an edge or corner, or HTNOWHERE outside the button or if the object is NULL.

Description

The frame results are `HTTOPLEFT`, `HTTOP`, `HTTOPRIGHT`, `HTRIGHT`, `HTBOTTOMRIGHT`, `HTBOTTOM`, `HTBOTTOMLEFT` and `HTLEFT`. One-row delimiters count as part of the client area. A button with an empty caption and empty style has no hit area.

See also