afw

 

    TCategoryPanel *cp;

    for (int i = 0; i < TreeView1->Items->Count; i++)
    {
        if (TreeView1->Items->Item[i]->Level == 0)
        {
            cp = new TCategoryPanel(CategoryPanelGroup1);
            cp->PanelGroup = CategoryPanelGroup1;
            cp->Caption = TreeView1->Items->Item[i]->Text;
        }
}

 

posted on 2014-10-29 19:51  lypzxy  阅读(420)  评论(0编辑  收藏  举报