hWndCol = MTblGetSepCol( hWndTbl, nX, nY )

Returns, if the passed coordinates are over a column header separator, the handle of the column the separator belongs to.

Parameters
hWndTbl
Window Handle: Handle of the table

nX
Number: Screen pixel X coordinate relative to upper left corner of the table.

nY
Number: Screen pixel Y coordinate relative to upper left corner of the table.

Return
Window Handle: Handle of the column the separator belongs to or hWndNULL if the coordinates are not over a column header separator

Example
In this example a beep is played if the mouse is over the column header separator of the first visible column:

On WM_MOUSEMOVE
  Set nX = SalNumberLow( lParam )
  Set nY = SalNumberHigh( lParam )
  If MTblObjFromPoint( hWndTbl, nX, nY, nRow, hWndCol, nFlags, nMTblFlags )
    Set hWndFirstCol = hWndNULL
    Call MTblFindNextCol( hWndTbl, hWndFirstCol, COL_Visible, 0 )
    If ( nMTblFlags & MTOFP_OVERCOLHDRSEP And MTblGetSepCol( nX, nY ) = hWndFirstCol )
      Call SalMessageBeep( 0 )

See also
MTblObjFromPoint
Size, location and hit test

Created with the Personal Edition of HelpNDoc: Easy to use tool to create HTML Help files and Help web sites