本文整理汇总了C++中Border::set_Width方法的典型用法代码示例。如果您正苦于以下问题:C++ Border::set_Width方法的具体用法?C++ Border::set_Width怎么用?C++ Border::set_Width使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Border
的用法示例。
在下文中一共展示了Border::set_Width方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: TreeItemChildren
TreeItem::TreeItem(TreeControl* ownerTree)
{
ASSERT(0);
#if 0
m_itemData = NULL;
// m_iIndex = -1;
m_cChildren = -1;
m_userdata = NULL;
//m_expanded = false;
m_Span = new Border;
// m_Content = NULL;
// DockPanel* pPanel = new DockPanel;
m_ownerCtl = ownerTree;
if (ownerTree)
m_pos = ownerTree->m_treeItems.insert(ownerTree->m_treeItems.end(), this);
m_Children = NULL;
#if 0
m_Children = new TreeItemChildren(ownerTree);
m_Children->put_Visibility(Collapsed);
#endif
//m_Button = new Canvas;
{
m_ExpandButton = new Border(new Thickness(new Length(1)));
// m_ExpandButton->put_Width(Length(22));
// m_ExpandButton->put_Height(Length(22));
/*
m_ExpandButton->m_LeftBrush = new SolidColorBrush(Color(0,0,0));
m_ExpandButton->m_TopBrush = new SolidColorBrush(Color(0,0,0));
m_ExpandButton->m_RightBrush = new SolidColorBrush(Color(0,0,0));
m_ExpandButton->m_BottomBrush = new SolidColorBrush(Color(0,0,0));
*/
//Border* pRect = new Border(Thickness(Length(1), Length(1), Length(1), Length(1)));
// m_ExpandButton->put_Visibility(Hidden);
{
Border* pRect = new Border(new Thickness(new Length(1)));
pRect->set_Width(new Length(14));
pRect->set_Height(new Length(14));
pRect->set_BorderBrush(new SolidColorBrush(new Color(90,90,90)));
/*
pRect->put_Fill(new SolidColorBrush(new Color(0, 0, 0)));
pRect->put_RectangleWidth(new Length(14, Length::UnitAbsolute));
pRect->put_RectangleHeight(new Length(14, Length::UnitAbsolute));
*/
{
pRect->set_Content(new TextString(WSTR("-")));
}
m_ExpandButton->set_Content(pRect);
}
m_ExpandButton->set_Visibility(Hidden);
//DockPanel::put_Dock(m_ExpandButton, DockPanel::Left);
/*m_Button->*/AddRChild(m_ExpandButton);
}
AddRChild(m_Span);
/*
{
m_ContentBorder = new CLXUICanvas;
// m_ContentBorder->put_Content(m_Content);
DockPanel::put_Dock(m_ContentBorder, DockPanel::Fill);
m_Button->AddRChild(m_ContentBorder);
}
*/
//AddRChild(m_Button);
#if 0
AddRChild(m_Children);
#endif
/*
pPanel->AddRChild(m_Button);
pPanel->AddRChild(m_Children);
put_VisualTree(pPanel);
*/
// m_pFont = m_ownerCtl->m_pFont;
// m_ownerCtl->m_items.push_back(this);
#endif
}