CFindWBCtrlFromHWND Class

class CFindWBCtrlFromHWND: public ISearchLogic

CFindWBCtrlFromHWND encapsulates the logic that retrieves a web browser control that is a child (not necessarily immediate) of the specified HWND. It traverses the browser HWND's parent-child relation hierarchy upwards and sees if any of its parent HWND matches the specified HWND. This class is used in conjunction with the WalkAndExamineIEBrowsers utility function to traverse the IShellWindows array and determine the Web Browser control related to the specified HWND. Take a look at the Toolkit\\Pro\\WBExtSample for an illustration of the usage of this class.

Defined in: WBUtilFuncs.h

Class Members

CFindWBCtrlFromHWND(HWND hwnd):m_hWnd(hwnd)

Constructor.

IWebBrowser2*  m_pBrowser

A reference to the resultant browser control.