--- In [email protected], "entropyreduction" <[EMAIL PROTECTED]> wrote:
Hi Alan,

> In snippet below, do you know what this is about?
> 
>  if(not dll.call("SetWindowRgn|ui ui i",hWnd,hRgn,1))
>   dll.call("DeleteObject|ui",hRgn)
> 
> Why does one delete hRgn only if SetWindowRgn fails?

When it succeeds, no need to take care of it further:
they urge to not delete the region handle when succeeded, the system
itself will delete it when it's no longer needed.

So, I set it to delete it only when the function is failed to save
resources.

Sean





Attention: PowerPro's Web site has moved: http://www.ppro.org 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/power-pro/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to