CheckBox

CheckBoxHitTest

Identify the box or caption at a screen position

Syntax

Signature
int           CheckBoxHitTest( CheckBox *checkBox, int row, int col );

Arguments

checkBox the check box.

row, col the screen row and column to test.

Return value

HTCLIENT on one of the three box cells, HTCAPTION on the caption, or HTNOWHERE elsewhere or if the object is NULL.

Description

The box takes priority when the two regions overlap. The caption region uses its displayed character count and omits the accelerator marker. An empty caption has no hit region.

See also