SECBandImpl Class

template <class T, const CLSID* pclsid>
class SECBandImpl: public IDeskBand, public IObjectWithSite, public IPersistStream

SECBandImpl

Defined in: SECBand.h

Comments

This class implements IDeskBand, IObjectWithSite and IPerisitStream interfaces that are required by IE band object and Deskband object. This class provide default implementation for all four band object, i.e. Verical Explorer band, Horizontal Expplorer band, Explorer Toolbar band and Desk band object. By combining this implementation and our IE Band Wizard, we don't need to add any code to get full functional band object of the four kind. This class requires two template arguments, the class in the first template argument is required to implement Create function and have a window handle member variable m_hWnd, which is typically done by inheriting from CWindowImpl or similar window class in the ATL. The second template argument is a pointer to the CLSID of your COM object that implement this band object. To use this object, you generally use our IE band Wizard to generate a skeleton Band object. You can then handle the window message to create child controls or draw on the band window. You can also use our IContextMenu implementation class OtlIContextMenuImpl to simplify the context menu implementation for your band object. Other than the methods in the interfaces IDeskBand, IObjectWithSite and IPersistStream, this class provide a few virtual functions to simplify this implementation.

From a development perspective, the difference among the four type of band object are minor. In fact, the only difference among types is the registry category. However, our band wizard automatically generated the required registration code for you. That why we recommend you to start from our IE Band Wizard.

Note that the Band object requires IE 4.01 SP1 or higher, while the Toolbar Band object requires IE 5.0 or higher. After registration, the Deskband object can be accessed from the toolbars menu by right click the taskbar, the Vertial and Horizontal IE Band can be accessed from "View->Explorer Bar" menu of IE, the toolbar band can be accessed from "View->toolbars" menu of IE.

Class Template Arguments

T

The derived class

pclsid

A pointer to the CLSSS ID of the derived class

Class Members

virtual WCHAR*  GetBandTitle()

Get band title string

virtual DWORD  GetBandModeFlag()

Get band mode flag

virtual SIZE  GetBandSize(DWORD wFlags, DWORD dwBandID, DWORD dwViewMode)

Get band size