Hi,

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:

HB_FUNC( NEWBRUSH )
{
   hb_retnl( (LONG) CreateSolidBrush( (COLORRREF) hb_parnl(1) );
   // return value can be a minus or an out-of-range (why?)
}

Thanks.
--
Andi



-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
xHarbour-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xharbour-developers

Reply via email to