
Toolbar button doesn't stay down
Hey !!!
How can I make my Toolbar button to stay down when I push it and popup when
I push another button ???
I create toolbar like this:
if (!m_MyToolBar.Create(this, WS_CHILD | WS_VISIBLE | CBRS_TOP |
CBRS_TOOLTIPS) ||
!m_MyToolBar.LoadBitmap(IDB_BITMAP1) ||
!m_MyToolBar.SetButtons(PaletteButtons,
sizeof(PaletteButtons)/sizeof(UINT)))
{
TRACE0("Failed to create toolbar\n");
return -1; // fail to create
}
Thanks