Round region

Round region

Postby Silvio » Tue Feb 03, 2009 12:29 am

wich are the parameters for CreateRoundRectRgn function ?
Best Regards, Saludos

Falconi Silvio
User avatar
Silvio
 
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

Re: Round region

Postby mmercado » Tue Feb 03, 2009 2:00 am

Hi Silvio:
Code: Select all  Expand view
CreateRoundRectRgn( nLeftRect, nTopRect, nRightRect, nBottomRect, ;
                    nWidthEllipse, nHeightEllipse )

Regards.

Manuel Mercado
manuelmercado at prodigy dot net dot mx
User avatar
mmercado
 
Posts: 782
Joined: Wed Dec 19, 2007 7:50 am
Location: Salamanca, Gto., México

Re: Round region

Postby Silvio » Tue Feb 03, 2009 8:38 am

this from xharbour or from c file ?
Best Regards, Saludos

Falconi Silvio
User avatar
Silvio
 
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

Re: Round region

Postby mmercado » Wed Feb 04, 2009 3: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
User avatar
mmercado
 
Posts: 782
Joined: Wed Dec 19, 2007 7:50 am
Location: Salamanca, Gto., México

Re: Round region

Postby Antonio Linares » Wed Feb 04, 2009 7:20 pm

regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42080
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Round region

Postby Silvio » 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
User avatar
Silvio
 
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy


Return to FiveWin for Harbour/xHarbour

Who is online

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