>Toninho
>
>O melhor e usar assim
>
>HB_FUNC( NEWBRUSH )
>{
> hb_retptr( (void *) CreateSolidBrush( (COLORRREF) hb_parnl(1) );
> // return value can be a minus or an out-of-range (why?)
>}
>
>and when use do
>
>HB_FUNC(AAAA)
>{
>COLORREF d = (COLORREF)hb_parptr(1);
>functioncall(d);
>}
Luiz, thanks, but FWH uses another way for ALL winapi:
---cut---
HB_FUNC( CREATESOLIDBRUSH )
{
HBRUSH hBrush = CreateSolidBrush( hb_parnl( 1 ) );
hb_retnl( ( unsigned long ) hBrush );
}
---cut---
I suspect that I found the FWH problem: COLORREF is DWORD not LONG and
sometimes I get invalid handles. I´ll contact Antonio Linares.
Regards,
Toninho.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
xHarbour-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xharbour-developers