횽아들 툴바에 컨트롤들 달아보고있는데

책에 보니 밑에와 같은 함수를 만들어서 달더라고

BOOL CMainFrame::AddStatic(CToolBar *pToolBar, CStatic *pStatic, int nIndex, int cx, int cy, LPCTSTR Content, DWORD dwStyle, UINT nID)
{
 CRect rect;
 pToolBar->GetItemRect(nIndex, rect);

 rect.right = rect.left + cx;
 rect.bottom = rect.top + cy;

 if(!pStatic->Create(Content, dwStyle, rect, pToolBar, nID))
  return FALSE;
 pToolBar->SetButtonInfo(nIndex, nID, TBBS_SEPARATOR, cx);
 return 0;
}

이렇게 컨트롤 포인터 바꿔가면서 이것저것 달았는데

웃긴게 달려는게 11개인데 11개를 다니까 툴바가 안뜨더라구

이상해서 다 주석처리한뒤 하나하나 지워가니까 10개까지만 달리고 11개째를 달면 툴바가 안달리던데 이거 대체 왜그런거지? ㅠㅠ