FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Round region
Posts: 3107
Joined: Fri Oct 07, 2005 06:28 PM
Round region
Posted: Tue Feb 03, 2009 12:29 AM

wich are the parameters for CreateRoundRectRgn function ?

Best Regards, Saludos



Falconi Silvio
Posts: 782
Joined: Wed Dec 19, 2007 07:50 AM
Re: Round region
Posted: Tue Feb 03, 2009 02:00 AM
Hi Silvio:
CreateRoundRectRgn( nLeftRect, nTopRect, nRightRect, nBottomRect, ;
                    nWidthEllipse, nHeightEllipse )

Regards.

Manuel Mercado
manuelmercado at prodigy dot net dot mx
Posts: 3107
Joined: Fri Oct 07, 2005 06:28 PM
Re: Round region
Posted: Tue Feb 03, 2009 08:38 AM

this from xharbour or from c file ?

Best Regards, Saludos



Falconi Silvio
Posts: 782
Joined: Wed Dec 19, 2007 07:50 AM
Re: Round region
Posted: Wed Feb 04, 2009 03:40 PM
this from xharbour or from c file ?
It's a C function, up to my knowledge there is not such a function in FWH.

Regards.

Manuel Mercado
manuelmercado at prodigy dot net dot mx
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: Round region
Posted: Wed Feb 04, 2009 07:20 PM
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 3107
Joined: Fri Oct 07, 2005 06:28 PM
Re: Round region
Posted: Wed Feb 04, 2009 11:36 PM

I made this but I not Know if it run ok
I think there are other steps to create a round region ..

HB_FUNC ( CREATEROUNDRECTRGN )
{
HWND hWnd = ( HWND ) hb_parnl( 1 ) ;
HRGN hRgn;
RECT rct;

GetClientRect( hWnd, &rct ) ;

hRgn = CreateRoundRectRgn( rct.left, rct.top,
rct.right - rct.left + 1,
rct.bottom - rct.top + 1, hb_parnl( 2 ), hb_parnl( 3 ) ) ;

hb_retnl ((long) hRgn);
}

Best Regards, Saludos



Falconi Silvio

Continue the discussion