I am trying to use CToolBar object.

1) I am using the following set of commands to display it, but it doesnt show up on the window.

CToolBar toolBar;

if (!toolBar.CreateEx(this, TBSTYLE_FLAT, WS_CHILD | WS_VISIBLE | CBRS_BOTTOM
| CBRS_GRIPPER | CBRS_TOOLTIPS | CBRS_FLYBY | CBRS_SIZE_DYNAMIC) ||
!toolBar.LoadToolBar(IDS_SCALE))
{
TRACE0("Failed to create toolbar\n");
}

toolBar.LoadBitmap("IDB_VERTICAL_GRAPH_SCALE");
toolBar.SetButtons(NULL,1);

This is to have a minimal tool bar thingy working. But it doesnt even show up. What am I missing? Whatever method this is in, I am calling it on OnPaint().


2) I am using (once I get it working) "CBRS_BOTTOM" this to display the tool bar at the bottom. I want it on (vertical) left too. How do I manage that?

This is creating a tool bar object and not through class wizard. That's why I am probably confused.