I'm trying to make a vertical rebar, however it doesn't resize horizontally properly.
rebarinfo is defined a bit before that code but seeing as it is not required I left that part out.
rbi.cbSize = sizeof(REBARBANDINFO);
rbi.fMask = RBBIM_CHILD|RBBIM_TEXT|RBBIM_STYLE|RBBIM_SIZE|RBBIM_CHILDSIZE;
rbi.fStyle = RBBS_CHILDEDGE;
rbi.cyMinChild = 1070;
rbi.cx = 2050;
rbi.lpText = "Controls";
rbi.cch = lstrlen(rbi.lpText);
cCtrls[_TOOLSREBAR].parent = HWND_MAIN;
cCtrls is an array of type CTRL which is a crappy little control class I just made up to test.
I'm sending all the required messages I believe, and I know the height and the width should be a certain value which I've set but it doesn't go any wider than one character.