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);
}
----- Original Message -----
From: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
To: "Andi Jahja" <[EMAIL PROTECTED]>
Cc: "Xharbour-Developers" <[email protected]>
Sent: Tuesday, May 13, 2008 10:11 AM
Subject: Re: [xHarbour-developers] Stupid Questions ...
>I have silly questions as follows:
>
>1. What is the range of a Window handle?
>2. When I create a handle, example: CreateSolidBrush(),the return value
> can become negative or "out of range" (?) and Windows complains that
> it is not a valid handle.
>
>The code:
>
Andi. Do you have any news about this? If not, I´ll try to discover
anything because I had the same doubt here.
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
-------------------------------------------------------------------------
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