![]() ![]() In response, the browser navigates to that location. The browser is notified when things happen in the view for example, when the user double-clicks a folder. It also keeps a travel log (forward and back history). The ExplorerBrowser object maintains the current location and navigation to other locations throughout the Shell namespace. The Shell architecture has three main components: the browser, the views, and the data sources (for example, IShellFolder). For example, if you navigate to a search folder in ExplorerBrowser and you do not return CDB2GVF_NOINCLUDEITEM, the view can stop responding until the entire search is complete. When ICommDlgBrowser2::GetViewFlags is called, it should return CDB2GVF_NOINCLUDEITEM. To stop the UI thread from filtering and instead run filtering on a background thread, provide ICommDlgBrowser2 through the SID_SExplorerBrowserFrame service request. For new applications, this is typically not desired the search should execute on a background thread. ![]() To remain compatible with some older applications, the default Shell view (DefView) performs filtering operations (for example, searching operations executed by a search folder) on the UI thread. Note that the client does not receive a call to ICommDlgBrowser::IncludeObject if a folder filter has been set on the browser by a call to IFolderFilterSite::SetFilter. See IExplorerPaneVisibility::GetPaneState for more information.Ĭlients of the ExplorerBrowser object can implement the ICommDlgBrowser, ICommDlgBrowser2, or ICommDlgBrowser3 interfaces and respond to an SID_SExplorerBrowserFrame service request in their QueryService implementations that are called when any ICommDlgBrowser interfaces are called on the browser (usually called from the view as a result of user actions). The default panes, listed as IExplorerPaneVisibility constants, are these: To enable frames and get the default set of panes, set the EBO_SHOWFRAMES flag using the IExplorerBrowser::SetOptions method. For example, the number of panes shown by the browser can be controlled by implementing IExplorerPaneVisibility and responding to any SID_ExplorerPaneVisibility service requests.įrames are disabled by default. The object that hosts the ExplorerBrowser object should derive from IServiceProvider and implement QueryService to respond to any queries for service. (IExplorerBrowser.Unadvise)įor example code that shows typical use of IExplorerBrowser and its methods, see the Explorer Browser Custom Contents and Explorer Browser Custom Contents samples.Īfter calling this object's Initialize method, its Destroy method must be called to free any windowed resources that were generated in the call to Initialize. Sets the size and position of the view windows created by the browser. Sets the folder settings for the current view. Removes all items from the results folder. Gets an interface for the current view of the browser. Initiates a connection with IExplorerBrowser for event callbacks.īrowses to a pointer to an item identifier list (PIDL)Ĭreates a results folder and fills it with items. The IExplorerBrowser interface has these methods. IExplorerBrowser also has these types of members: Methods The IExplorerBrowser interface inherits from the IUnknown interface. ![]() Download the Explorer Browser Search Sample and the Explorer Browser Custom Contents Sample. ![]() The Windows Software Development Kit (SDK) provides full samples that demonstrate the use of and interaction with IExplorerBrowser. Typically, a developer does not need to provide a custom implementation of this interface. The Shell provides a default implementation of IExplorerBrowser as CLSID_ExplorerBrowser. As a full-featured browser object, it also supports an automatic travel log. IExplorerBrowser is a browser object that can be either navigated or that can host a view of a data object. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |