RE: Re: main_interation and GetMessage
- From: "Henrik Genssen" <henrik genssen mediafactory de>
- To: gtk-list gnome org
- Subject: RE: Re: main_interation and GetMessage
- Date: Thu, 16 Aug 2012 13:10:53 +0200
>reply to message:
>date: 16.08.2012 12:44:49
>from: "LRN" <lrn1986 gmail com>
>to: gtk-list gnome org
>subject: Re: main_interation and GetMessage
>
>On 16.08.2012 13:16, Henrik Genssen wrote:
>> My app so far uses main_interation(true) as main message loop. Now
>> I need to prefilter messages for IOleInPlaceActiveObject of
>> Internet Explorer to feed its TranslateAccelerator() function.
>>
>> Can I somehow combine the winapi function GetMessage() and the gtk
>> message loop?
>>Does [1] help?
>>[1] http://developer.gnome.org/glib/2.32/glib-IO-Channels.html
no, as far as I can see, that lib does not deal with the windows message queue.
I am doing something like:
msg = MSG()
lpmsg = byref(msg)
while GetMessage(lpmsg, 0, 0, 0):
if not self.PreTranslateMessage(msg):
TranslateMessage(lpmsg)
DispatchMessage(lpmsg)
and neet to combinate it with the gtk message loop - if the message was not processed...
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]