Re: main_interation and GetMessage
- From: LRN <lrn1986 gmail com>
- To: Gnome List <gtk-list gnome org>
- Subject: Re: main_interation and GetMessage
- Date: Thu, 16 Aug 2012 15:47:08 +0400
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 16.08.2012 15:08, Henrik Genssen wrote:
>> 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 meant this part of it:
g_io_channel_win32_new_messages ()
GIOChannel * g_io_channel_win32_new_messages (gsize hwnd);
Creates a new GIOChannel given a window handle on Windows.
This function creates a GIOChannel that can be used to *poll for
Windows messages* for the window in question.
hwnd :
a window handle.
Returns :
a new GIOChannel.
With that you might be able to wrap your window as a datasource for
GLib main loop, and use it.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iQEcBAEBAgAGBQJQLN25AAoJEOs4Jb6SI2CwcvgIALxPrINksW41/cZznkatOFSZ
bYHRyJJedVa3n+yrNfHQGV3l+qecsX6PTTMxPsgh2W4mN3hrK8gxJgYQB00+sion
KGkdUC6NWXr4WQNil8rPn51kSotta9lfdxCXafZNzE8la/DUO0OwNyevO+hiIZgG
oUAJ2NHRASccmKQcwHl4tpHNw4utMLxcuapQdYeM6br7d1jtFZepJFPj32iRLND+
MCPtAK2hjMDkYu5qIJKpAlLFVxHjsFyGqDAWaa49SbqSLOOUUUgEvAqTJ/VvdsCR
fH1Y4jEZo6tDL8qBvKT91mgTmuI+4osFg7v4QBObejoFQ9Cxz8uOGs6Ka3xva9s=
=RSdB
-----END PGP SIGNATURE-----
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]