I can't find a simple CToolBar example of all things..
I created a toolbar in the resource editor, and loaded the toolbar in my code like this:
toolbar = new CToolBar;
toolbar->CreateEx(this, TBSTYLE_FLAT, WS_CHILD | WS_VISIBLE | CBRS_ALIGN_TOP, CRect(0, 0, 0, 0), AFX_IDW_TOOLBAR);
toolbar->LoadToolBar(IDR_TOOLBAR);
I have also handled WM_LBUTTONDOWN in the message map.
Now, all the buttons are grayed out.. am I missing a step somewhere?
Thanks for any help/links =)