TB_HITTEST


Determines where a point lies in a toolbar control.

TB_HITTEST
    wParam = 0;
    lParam = (LPARAM)(LPPOINT)pptHitTest; 

Parameters

pptHitTest
Address of a point structure that contains the x-coordinate of the hit test in the x member and the y-coordinate of the hit test in the y member. The coordinates are relative to the toolbar's client area.

Return Values

Returns an integer value. If the return value is zero or a positive value, it is the zero-based index of the nonseparator item in which the point lies.

If the return value is negative, the point does not lie within a button. The absolute value of the return value is the index of a separator item or the nearest nonseparator item.

Requirements

  Version 4.00 and later of Comctl32.dll

  Windows NT/2000: Requires Windows NT 4.0 or later
  Windows 95/98: Requires Windows 95 or later
  Header: Declared in commctrl.h.