I found it in TABCTRL.C. How can I use it? I try to change the function in my program to TABCTRL_HI() but it shows error "unresolved external".
- Code: Select all Expand view
#ifdef __HARBOUR__
CLIPPER TABCTRL_HITTEST( PARAMS ) // ( hWnd ) --> nTabItemIndex
#else
CLIPPER TABCTRL_HI( PARAMS ) // TTEST( hWnd ) --> nTabItemIndex
#endif
{
TC_HITTESTINFO hti;
POINT p;
HWND hCtrl = ( HWND ) _parnl( 1 );
GetCursorPos( &p );
ScreenToClient( hCtrl, &p );
hti.pt.x = p.x;
hti.pt.y = p.y;
hti.flags = TCHT_ONITEM | TCHT_ONITEMICON | TCHT_ONITEMLABEL;
_retnl( TabCtrl_HitTest( hCtrl, &hti ) );
}
Thanks®ards,
Dutch