FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for CA-Clipper TabCtrl_Hittest( oFlg:hWnd ), Is working with FW 16bit?
Posts: 1598
Joined: Fri Oct 07, 2005 05:56 PM
TabCtrl_Hittest( oFlg:hWnd ), Is working with FW 16bit?
Posted: Fri Sep 05, 2008 07:42 PM

Dear Antonio,

I try to use Tabctrl_hittest( ::hWnd ) in FW16bit but it show unknow function Tabctrl_hi(). Is it support 16bit? If it supports, How can I use it with more than 10 char function?

Regards,
Dutch

Regards,

Dutch



FWH 2304 / xHarbour Simplex 1.2.3 / BCC73 / Pelles C / UEStudio

FWPPC 10.02 / Harbour for PPC (FTDN)

ADS V.9 / MySql / MariaDB

R&R 12 Infinity / Crystal Report XI R2

(Thailand)
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
TabCtrl_Hittest( oFlg:hWnd ), Is working with FW 16bit?
Posted: Tue Sep 09, 2008 09:00 AM

Dutch,

You can't use more than 10 chars functions names with Clipper, so you have to modify the C source code so its name has 10 chars only.

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1598
Joined: Fri Oct 07, 2005 05:56 PM
TabCtrl_Hittest( oFlg:hWnd ), Is working with FW 16bit?
Posted: Tue Sep 09, 2008 06:06 PM
Dear Antonio,

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".

#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
Regards,

Dutch



FWH 2304 / xHarbour Simplex 1.2.3 / BCC73 / Pelles C / UEStudio

FWPPC 10.02 / Harbour for PPC (FTDN)

ADS V.9 / MySql / MariaDB

R&R 12 Infinity / Crystal Report XI R2

(Thailand)

Continue the discussion