The CCS_NORESIZE style may have to be added to the window style when creating a toolbar that is to be a child of a rebar control. An example of creating the toolbar window follows:
HWND hToolbar = CreateWindowEx(0, TOOLBARCLASSNAME, NULL,
WS_CHILD | TBSTYLE_WRAPABLE | TBSTYLE_FLAT | CCS_NORESIZE,
0, 0, 0, 0,
hParentWnd, NULL, GetModuleHandle(NULL), NULL);