Embed a CToolBar within a CDialogBar
C / C++ / MFC
1
Posts
1
Posters
0
Views
1
Watching
-
I have a CDialogBar which uses a dialog resource, and the resource has some push buttons and a list box. I recently decided that I wanted the dialog bar to also have a tool bar at the top of its window. I've tried adding a CToolBar object, as well as tried adding a CToolBarCtrl, but I'm not able to get the tool bar to display. I tried the same technique with adding a CToolBar object to a CDialog, and that worked fine (as did CToolBarCtrl), but when I try the same code within a CDialogBar, nothing appears. Any suggestions? I've searched but I haven't found anything on the subject. I've found tips on how to add a CToolBar to a CDialog, but not how to add a CToolBar (or a CToolBarCtrl) to a CDialogBar. Thanks, Jeff