[gnet-dev] gnet-win32 message callback



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.




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