TabCtrl_Hittest( oFlg:hWnd ), Is working with FW 16bit?

TabCtrl_Hittest( oFlg:hWnd ), Is working with FW 16bit?

Postby dutch » Thu Sep 11, 2008 1:45 pm

I've a program is still in 16bit Clipper/FW2.5. I try to use this function but it is not support function more than 10 Character.

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&regards,
Dutch
User avatar
dutch
 
Posts: 1542
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

Postby nageswaragunupudi » Thu Sep 11, 2008 2:25 pm

use TABCTRL_HITTEST
not TABCTRL_HI

But I do not know what it does
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10624
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Postby dutch » Sat Sep 13, 2008 5:04 pm

It check the Drop Folder ID. It cannot use TabCtrl_Hittest() because Clipper look only 10 character.

Regards,
Dutch
User avatar
dutch
 
Posts: 1542
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 90 guests