Band Object Interfaces
Band objects are required to implement
IDeskband and IObjectWithSite.
The Platform SDK says that they must also implement
IPersist and IPersistStream,
but this is not the case. Optionally, if the band accepts user input,
it needs to implement IInputObject. Bands can also
provide context menus by implementing
IContextMenu. We have already discussed
IObjectWithSite and
IContextMenu, so basically all we need to do is
get up to speed with IDeskband and
IInputObject. So, let’s get to it.
IDeskband
IDeskband
,
the primary interface of the band object, is derived from
IDockingWindow, which, in turn, is derived from
IOleWindow.
IDeskband contains only one native method:
GetBandInfo. There are three methods that are
inherited from IDockingWindow, and two that have
been inherited from IOleWindow. We have already
seen IOleWindow while discussing
IShellBrowser in Chapter 11, so
we will forego another discussion. Table 13.1
describes all the methods of the IDeskband
interface. The methods that have been marked with an asterisk do not
have to be implemented.
Table 13-1. IDeskband Methods
|
IOleWindow | |
|
|
Returns the window handle to one of the windows participating in in-place activation (frame, document, parent, or in-place object window). |
|
|
Determines whether context-sensitive help mode should be entered during an in-place activation session. |
|
IDockingWindow | |
|
|
Called when the docking window is supposed to be shown or hidden. ... |
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access