Search code examples
cwinapiwindowmsdnz-order

Getting handle to the setting window of Edge browser


In Edge browser, how can I get the handle to the settings window, once I have the handle to the browser itself? enter image description here

I've tried to use GetNextWindow(m_browserHndl, GW_HWDPREV) API but it returns something else.


Solution

  • The More actions menu doesn't create a native window. The fact that it's always rendered inside the browser window is a strong indication for that. If you need certainty, use the Inspect tool (part of the Windows SDK).

    If you wish to automate the browser, use the supported automation interface instead. Microsoft Edge exposes the interfaces required to use UI Automation.