wxListCtrl.HitTest flags

BlitzMax Forums/Brucey's Modules/wxListCtrl.HitTest flags

DavidDC(Posted 2008) [#1]
Hey Brucey :-)

I'm thinking that flags should be a pointer here?
long bmx_wxlistctrl_hittest(wxListCtrl * list, int x, int y, int flags, long * subitem) {

	return list->HitTest(wxPoint(x, y), flags, subitem);

}

The way I'm reading the docs, flags returns the location relative to the gadget contents of the hit. e.g.
wxLIST_HITTEST_ONITEMRIGHT In the area to the right of an item.


(edit) From listctrl_mac.cpp

// Determines which item (if any) is at the specified point,
// giving details in 'flags' (see wxLIST_HITTEST_... flags above)
long
wxListCtrl::HitTest(const wxPoint& point, int& flags, long *ptrSubItem) const