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);


.



Relevant Pages

  • Re: Quick Launch gone
    ... but am still left with a gripper about 2'' to the right of the Start button.. ... After you close all toolbars on the taskbar, you should not see any grippers. ... I dragged the verticle bar of Quick Launch in the tray area too far to the left, which removed all of the icons.. ... Now I cannot restore the Quick Launch area in the toolbar; the verticle bar will not drag back to the right... ...
    (microsoft.public.win2000.general)
  • Rebar Gripper disappearance
    ... I've made a rebar with gripper always on. ... inclusion in a rebar. ... the left edge of the toolbars always paints ...
    (microsoft.public.win32.programmer.ui)
  • Rebars and toolbars
    ... Would someone be kind enough to send me the base code for a rebar with a ... I have successfully coded the rebar and toolbars so I don't really need much ... gripper and I cannot see why that is happening. ...
    (microsoft.public.win32.programmer.ui)