Changing of appearance of gripper in custom draw toolbar



We're using ATL (and Win 32) to develop toolbars. We would like to customize
the look of the gripper in toolbar (dotted gripper just like in Windows XP).
Can you please help us in this regard.

Mainly we're struck on how to identify the gripper. Currently we're trying a
piece of code that we got from web

m_pEBand = std::auto_ptr<CMCToolBar>(new CMCToolBar());
m_pEBand->Create(m_hWnd, CRect(0,0,0,0), NULL,
WS_CHILD|WS_VISIBLE|CCS_NODIVIDER|CCS_NOPARENTALIGN|CCS_NOMOVEY|CCS_NORESIZE
|TBSTYLE_FLAT|TBSTYLE_TRANSPARENT);

// m_pEBand = std::auto_ptr<CMCStatic>(new CMCStatic());

// m_pEBand->Create(m_hWnd, CRect(0,0,0,0), NULL,
WS_CLIPSIBLINGS|WS_CLIPCHILDREN|WS_CHILD|WS_VISIBLE|SS_SIMPLE|SS_GRAYRECT,
WS_EX_CONTROLPARENT);

m_vecEdit.clear();

m_vecEdit.resize(m_nM);

for( i = 0; i < m_nM; i++)

InitEdit(i, m_vecEdit[i]);

iEditHeight = m_vecEdit[0]->GetBestHeight()+4; //Input bar height

m_pEBand->m_pChain = this;

ZeroMemory(&rbbi, sizeof(rbbi));

rbbi.cbSize = sizeof(REBARBANDINFO);

rbbi.fMask =
RBBIM_STYLE|RBBIM_HEADERSIZE|RBBIM_IDEALSIZE|RBBIM_CHILD|RBBIM_CHILDSIZE|RBB
IM_ID|RBBIM_STYLE;//|RBBIM_TEXT; //|RBBIM_IMAGE;

rbbi.cxMinChild = m_pCB->m_UIInfo.m_nEditWidth;

rbbi.cyMinChild = 0;

rbbi.cxIdeal = 100;

rbbi.wID = MC_INPUT_BAND;

// rbbi.fStyle = RBBS_NOVERT|RBBS_CHILDEDGE|RBBS_HIDDEN|RBBS_GRIPPERALWAYS |
RBBS_USECHEVRON ;

rbbi.fStyle =
RBBS_NOVERT|RBBS_CHILDEDGE|RBBS_GRIPPERALWAYS|RBBS_HIDDEN|RBBS_USECHEVRON;

rbbi.cxHeader = 10;

rbbi.hwndChild = m_pEBand->m_hWnd;

InsertBand(-1, (LPREBARBANDINFO)&rbbi);

////YC Band////////////////////////////////////////

m_pDBand = std::auto_ptr<CMCStatic>(new CMCStatic());

m_pDBand->Create(m_hWnd, CRect(0,0,0,0), NULL,
WS_CHILD|WS_VISIBLE|CCS_NODIVIDER|CCS_NOPARENTALIGN|CCS_NOMOVEY|CCS_NORESIZE
|TBSTYLE_FLAT|TBSTYLE_TRANSPARENT);

m_vecDate.clear();

m_vecDate.resize(m_nDM);

for(i = 0; i < m_nDM; i++)

InitDate(i, m_vecDate[i]);

m_pDBand->m_pChain = this;

ZeroMemory(&rbbi, sizeof(rbbi));

rbbi.cbSize = sizeof(REBARBANDINFO);

rbbi.fMask
=RBBIM_STYLE|RBBIM_HEADERSIZE|RBBIM_IDEALSIZE|RBBIM_CHILD|RBBIM_CHILDSIZE|RB
BIM_ID|RBBIM_STYLE|RBBIM_TEXT; //|RBBIM_IMAGE;

rbbi.cxMinChild = m_nDateWidth;

rbbi.cyMinChild = 0;

rbbi.cxIdeal = 100;

rbbi.wID = MC_DATE_BAND;

// rbbi.fStyle = /*RBBS_CHILDEDGE|*/RBBS_NOVERT|RBBS_CHILDEDGE|RBBS_HIDDEN|
RBBS_GRIPPERLWAYS | RBBS_USECHEVRON;

rbbi.fStyle = RBBS_NOVERT|RBBS_CHILDEDGE|RBBS_GRIPPERALWAYS|RBBS_HIDDEN|
RBBS_USECHEVRON;

rbbi.cxHeader = 10;

rbbi.hwndChild = m_pDBand->m_hWnd;

InsertBand(-1, (LPREBARBANDINFO)&rbbi);


.