Comment 471 for bug 263435

Revision history for this message
In , 7-postmaster-alishomepage-com (7-postmaster-alishomepage-com) wrote :

What is the C++ code for getting to the browser itself?

https://developer.mozilla.org/en/Code_snippets/Finding_Window_Handles says it should be something like:

> nativeWindow hwnd;
> nsresult rv = window->GetParentNativeWindow(&hwnd);
> if (NS_FAILED(rv)) return NULL;
> return (HWND)hwnd;

Can anyone test?

Cheers

S. Ali Tokmen
http://ali.tokmen.com/