多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
```xml <?xml version="1.0" encoding="utf-8" standalone="yes" ?> <Window size="593,382" caption="0,0,0,32" sizebox="4,4,4,4"> <VerticalLayout width="593" height="382" bkimage=" file='./SysBtn\background.bmp' "> <HorizontalLayout width="593" height="30"> <VerticalLayout width="520" height="30" /> <VerticalLayout width="73" height="30"> <Button float="true" tooltip="主窗体" pos="5,3,0,0" name="MainBtn" width="23" height="23" textcolor="#FF000000" disabledtextcolor="#FFA7A6AA" align="center" normalimage=" file='./SysBtn\119.BMP' " hotimage=" file='./SysBtn\117.BMP' " pushedimage=" file='./SysBtn\117.BMP' " /> <Button float="true" tooltip="关闭" pos="35,3,0,0" name="closebtn" width="23" height="23" textcolor="#FF000000" disabledtextcolor="#FFA7A6AA" align="center" normalimage=" file='./SysBtn\115.BMP' " hotimage=" file='./SysBtn\114.BMP' " pushedimage=" file='./SysBtn\116.BMP' " /> </VerticalLayout> </HorizontalLayout> <HorizontalLayout width="593" height="352" bkcolor="0x00000000"> <VerticalLayout width="400" height="352"> <HorizontalLayout width="400" height="100"/> <HorizontalLayout width="400" height="252"> <TreeView name="treeV" float="false" text="cc" pos="50,10,0,0" bkcolor="0x00000000"> <TreeNode name="movie" text="A1"> <TreeNode name="treea2" text="B1"/> </TreeNode> </TreeView> </HorizontalLayout> </VerticalLayout> </HorizontalLayout> </VerticalLayout> </Window> ``` ```c++ void InitWindow() { CTreeNodeUI* node = new CTreeNodeUI; CTreeNodeUI* pParentTree = static_cast<CTreeNodeUI*>(m_PaintManager.FindControl(_T("movie"))); node->SetItemTextColor(0xFFFFFFFF); node->SetItemHotTextColor(0xFFC8C6CB); node->SetSelItemTextColor(0xFFC8C6CB); node->SetAttribute(_T("folderattr"), _T("width=\"0\" float=\"true\" ")); node->SetAttribute(_T("itemattr"), _T("padding=\"16,0,0,0\" align=\"left\" ")); node->SetItemText(_T("电影4")); pParentTree->AddAt(node,2);//只能插入0到倒数第二个位置 //pParentTree->Add(node); //可以插入到最后一个位置 } ``