pcssecure
asked on
Disable Toolbar.
I am working with the document view architecture's tool bars. How can I disable (gray-out) all the buttons in a tool bar? The tool bar is a CToolBar MFC object.
Thanks.
Thanks.
use of ON_UPDATE_COMMAND_UI wil not only disable toolbar but will grayed particular item also.
ASKER
Can you show me how to use
ON_UPDATE_COMMAND_UI ? Thanks.
ON_UPDATE_COMMAND_UI ? Thanks.
ASKER
I tried to use CWnd.EnableWindow(0). The toolbar is disabled but not grayed.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
//WS_DISABLED will disable your toolbar
if (!m_wndToolBar.CreateEx(th
| CBRS_GRIPPER | CBRS_TOOLTIPS | CBRS_FLYBY | CBRS_SIZE_DYNAMIC) ||
!m_wndToolBar.LoadToolBar(