It sounds like you should just propose a patch that adds a message_hwnd
getter on MessagePumpForUI :-)
-Darin



On Fri, Jan 30, 2009 at 2:59 PM, Daniel <[email protected]> wrote:

>
> I need to obtain the HWND of the message window for a thread so that I
> can call ::RegisterShellHookWindow() to get shell notifications via
> MessageLoopForUI::Observer. Unfortunately,
> MessagePumpForUI::message_hwnd_ is private.
>
> Any suggestions on how I can obtain it? I was thinking I could call
> FindWindowEx() with HWND_MESSAGE and the class/window names, but when
> you do this, you get multiple matches (e.g. the
> BrowserProcess::file_thread also creates a UI pump), so how can I
> differentiate and ensure that I'm obtaining the correct one??
>
> Thanks,
> D
>
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
Chromium Developers mailing list: [email protected] 
View archives, change email options, or unsubscribe: 
    http://groups.google.com/group/chromium-dev
-~----------~----~----~----~------~----~------~--~---

Reply via email to