// Redondear diálogo de entrada
static function RoundCorners( oDlg , nCuanto)
local aRect, hRgn
DEFAULT nCuanto:=25
aRect := GetClientRect( oDlg:hWnd )
hRgn := CreateRoundRectRgn( aRect, nCuanto, nCuanto) // nCuanto es la 'profundidad' del redondeo
SetWindowRgn( oDlg:hWnd, hRgn )
DeleteObject( hRgn )
return nil
static function RoundCorners( oDlg )
local aRect, hWnd, hRgn
aRect := GetClientRect( oDlg:hWnd )
hRgn := CreateRoundRectRgn( aRect, 40, 40 )
SetWindowRgn( oDlg:hWnd, hRgn )
DeleteObject( hRgn )
return nil
#pragma BEGINDUMP
#include "Windows.h"
#include <mapiwin.h>
#include "hbApi.h"
HB_FUNC( SETWINDOWRGN )
{
hb_retnl( SetWindowRgn( ( HWND ) hb_parnl( 1 ), ( HRGN ) hb_parnl( 2 ), TRUE ) );
}
#pragma ENDDUMP
Desde esta líneas dar las gracias a su autor (no se quien es).
Saludos
Return to FiveWin para Harbour/xHarbour
Users browsing this forum: Google [Bot] and 44 guests