how can I get the handle for the browser window what hosts a plugin window? I would like to inquire its size so I can properly resize my plugin window.
Hope that makes sense, Christian
how can I get the handle for the browser window what hosts a plugin window? I would like to inquire its size so I can properly resize my plugin window.
Hope that makes sense, Christian
You should never be resizing your plugin HWND; the browser does that. If you're resizing it without the browser's intervention you're breaking the contract and will likely end up in conflict with future changes of the browser which is assuming that you're allowing it to size you according to the DOM, not according to the root document window.
Just FYI.
For Windows user the solution is to call GetAncestor:
FB::PluginWindowWin* w = (FB::PluginWindowWin*)(fb_win);
HWND hWndBrowser = GetAncestor( w->getHWND(), GA_ROOTOWNER );
A thread on google groups explains a bit more:
https://groups.google.com/forum/?fromgroups=#!topic/firebreath-dev/4aMXWI94RzY
Christian