I'm trying to make a vertical rebar, however it doesn't resize horizontally properly.

Code:
ZeroMemory(&rbi,sizeof(REBARBANDINFO));
    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].SetMetrics(REBARCLASSNAME,NULL,10,110,500,100,0,WS_CHILD|WS_VISIBLE|CCS_NOMOVEX|CCS_LEFT);
    cCtrls[_TOOLSREBAR].parent = HWND_MAIN;
cCtrls[_TOOLSREBAR].Init();
    cCtrls[_TOOLSREBAR].SendMsg(RB_SETBARINFO,0,(LPARAM)&ri);   
 cCtrls[_TOOLSREBAR].SendMsg(RB_INSERTBAND,(WPARAM)-1,(LPARAM)&rbi);
rebarinfo is defined a bit before that code but seeing as it is not required I left that part out.

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.