Re: [gnet-dev] gnet-win32 message callback



That may work but the correct way is explained here:
http://www.gnetlibrary.org/pipermail/gnet-dev/2001-April/000016.html

Andy (still on vacation)

On Thu, 3 May 2001 wroberts1 home com wrote:

> 
> Apparently some messages for gtk will pass thru iochannel watch created
> buy gnet-win32 dll.  The gnet_MainCallBack() also gets called for gtk
> messages.  GetMessages() will swallow these messages and gtk events
> will be lost.  So i replaced it with:
>     PeekMessage(&msg, NULL, 0, 0, PM_NOREMOVE);
> 
> With this, the messages not meant for gnet are ignored, but not absorbed.
> 
> The messages I saw absorbed were for gtk button press/released and
> mouse leave/enter.
> 
> _______________________________________________
> gnet-dev mailing list
> gnet-dev gnetlibrary org
> http://www.gnetlibrary.org/mailman/listinfo/gnet-dev
> 




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]