UI Negotiation (Menu, Toolbar, and Status Bar)

The mechanism to determine which items will appear in the view window while the contents are visible is similar to OLE in-place activation but notable differences do exist. Three of them are discussed here.

First, the view window always exists even though it does not have the input focus. Therefore, it should maintain three states:

  • Deactivated

  • Activated with the focus

  • Activated without the focus

The view window may present different sets of menu items depending on the focus state. The Explorer notifies the state changes by calling IShellView::UIActivate. The view object should call IShellBrowser::OnViewWindowActivate when the view window is activated by the user.

Second, the Explorer does not support layout negotiation. Instead, it allows the view window to add toolbar buttons or set status bar texts. The view window may create modeless popups. The view object may call IShellBrowser::GetControlWindow or IShellBrowser::SendControlMsg to control them. The Explorer forwards appropriate notification messages from those controls using IShellView::ForwardControlMsg.

Third, the Explorer allows the view window to add menu items to the Explorer's pull-down menus (in addition to inserting top-level pull-down menus). In other words, the view object is allowed to insert menu items to submenus returned from IShellBrowser::InsertMenus. To let the Explorer dispatch menu messages correctly, a certain range of menu item IDs (between SHVIEW_FIRST and SHVIEW_LAST) must be used.

Software for developers
Delphi Components
.Net Components
Software for Android Developers
More information resources
MegaDetailed.Net
Unix Manual Pages
Delphi Examples
Databases for Amazon shops developers
Amazon Categories Database
Browse Nodes Database