68 lines
2 KiB
C
68 lines
2 KiB
C
#ifndef _ITBAR_H
|
|
#define _ITBAR_H
|
|
|
|
// initial layout information
|
|
typedef struct tagBANDSAVE
|
|
{
|
|
UINT wID;
|
|
UINT fStyle;
|
|
UINT cx;
|
|
} BANDSAVE, *PBANDSAVE;
|
|
|
|
// CItnernet Toolbar - Private commands
|
|
#define CITIDM_ONINTERNET 1 // nCmdexecopt ? Web : Shell
|
|
#define CITE_INTERNET 0
|
|
#define CITE_SHELL 1
|
|
#define CITE_QUERY 2
|
|
|
|
#define CITIDM_THEATER 2 // nCmdexecopt..
|
|
#define CITIDM_TEXTLABELS 3 // Toggle Text Labels
|
|
// the modes for theater mode
|
|
#define THF_ON 0
|
|
#define THF_OFF 1
|
|
#define THF_UNHIDE 2
|
|
#define THF_HIDE 3
|
|
|
|
// Indicies for Coolbar bands
|
|
// These indexes are 1 based since band array is memset to 0 and ShowDW would
|
|
// think that an unused item would belong to IDX0.
|
|
|
|
// IMPORTANT: don't change the value of anything between CBIDX_FIRST and CBIDX_LAST.
|
|
// CInternetToolbar::_LoadUpgradeSettings assumes these values haven't changed from
|
|
// version to version.
|
|
#define CBIDX_MENU 1
|
|
#define CBIDX_TOOLS 2
|
|
#define CBIDX_LINKS 3
|
|
#define CBIDX_ADDRESS 4
|
|
#define CBIDX_BRAND 5
|
|
#define CBIDX_FIRST CBIDX_MENU
|
|
#define CBIDX_LAST CBIDX_BRAND
|
|
|
|
#define MAXEXTERNALBANDS 16
|
|
#define CBIDX_EXTERNALFIRST (CBIDX_LAST + 1)
|
|
#define CBIDX_EXTERNALLAST (CBIDX_EXTERNALFIRST + MAXEXTERNALBANDS - 1)
|
|
|
|
#define CBANDSMAX (CBIDX_LAST + MAXEXTERNALBANDS)
|
|
|
|
#define CITIDM_VIEWEXTERNALBAND_FIRST 30
|
|
#define CITIDM_VIEWEXTERNALBAND_LAST (CITIDM_VIEWEXTERNALBAND_FIRST + MAXEXTERNALBANDS - 1)
|
|
|
|
#define BandIDtoIndex(hwnd, idx) SendMessage(hwnd, RB_IDTOINDEX, idx, 0)
|
|
|
|
|
|
// Indices for Toolbar imagelists
|
|
#define IMLIST_DEFAULT 0
|
|
#define IMLIST_HOT 1
|
|
|
|
#define ITBS_SHELL 0
|
|
#define ITBS_WEB 1
|
|
#define ITBS_EXPLORER 2
|
|
IStream *GetITBarStream(BOOL fWebBrowser, DWORD grfMode);
|
|
|
|
// number of bitmaps in the IDB_IETOOLBAR strips
|
|
#define MAX_TB_BUTTONS 16
|
|
|
|
#define SHELLGLYPHS_OFFSET MAX_TB_BUTTONS
|
|
|
|
#endif /* _ITBAR_H */
|