Show/Hide a toolbar
C / C++ / MFC
2
Posts
2
Posters
0
Views
1
Watching
-
Can anyone tell me how to hide or show a toolbar on the MainFrame window from another thread. When I do something like: frmMain->m_canvasToolBar.ShowWindow(SW_SHOW); the function returns FALSE. And when I try to use: frmMain->ShowControlBar(&frmMain->m_canvasToolBar, TRUE, FALSE); the application crashes deep down inside the MFC core.
-
Can anyone tell me how to hide or show a toolbar on the MainFrame window from another thread. When I do something like: frmMain->m_canvasToolBar.ShowWindow(SW_SHOW); the function returns FALSE. And when I try to use: frmMain->ShowControlBar(&frmMain->m_canvasToolBar, TRUE, FALSE); the application crashes deep down inside the MFC core.