Why isn't this making a toolbar?
Code:
case WM_CREATE:
HWND ToolBar;
ToolBar = CreateWindowEx(0, TOOLBARCLASSNAME, NULL, WS_CHILD | WS_VISIBLE, 0, 0, 0, 0,
hwnd, (HMENU)ID_TOOLBAR, GetModuleHandle(NULL), NULL);
// Send the TB_BUTTONSTRUCTSIZE message, which is required for
// backward compatibility.
SendMessage(ToolBar, TB_BUTTONSTRUCTSIZE, (WPARAM)sizeof(TBBUTTON), 0);
TBADDBITMAP BmpMenusIcons;
BmpMenusIcons.hInst=HINST_COMMCTRL;
BmpMenusIcons.nID=IDB_STD_SMALL_COLOR;
TBBUTTON buttons;
buttons.iBitmap=STD_FILENEW;
buttons.fsState=TBSTATE_ENABLED;
buttons.fsStyle=TBSTYLE_BUTTON;
buttons.idCommand=ID_OPEN;