Toolbar button doesn't stay down 
Author Message
 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



Mon, 21 Jun 2004 05:08:19 GMT  
 Toolbar button doesn't stay down
In your button's ON_UPDATE_COMMAND_UI handler use pCmdUI->SetCheck() to
push/pop it.

--
Ajay


Quote:
> 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



Mon, 21 Jun 2004 05:13:56 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Toolbar drop down menu doesn't show properly

2. Ownerdraw button doesn't show down state.

3. Button stays down?

4. Mouse Buttom Down and staying down

5. How to make toolbar buttons stay active always

6. toolbars won't stay put

7. Drop-down buttons on Toolbar Control in IE Add-in

8. Adding a drop down button to toolbar

9. CComboBox doesn't drop down...

10. ComboBox doesn't drop down

11. My combo box doesn't show the drop down menu

12. ComboBox doesn't drop down

 

 
Powered by phpBB® Forum Software