当前位置: 首页>>代码示例>>C++>>正文


C++ Border::put_Content方法代码示例

本文整理汇总了C++中Border::put_Content方法的典型用法代码示例。如果您正苦于以下问题:C++ Border::put_Content方法的具体用法?C++ Border::put_Content怎么用?C++ Border::put_Content使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Border的用法示例。


在下文中一共展示了Border::put_Content方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: Length


//.........这里部分代码省略.........
            {
                DockPanel* panel2 = new DockPanel;
                {
                    DockPanel* panel = new DockPanel;
                    {
                        Button* pSearchButton = new Button(new TextString(OLESTR("Search")));
                        DockPanel::set_Dock(pSearchButton, DockPanel::Right);
                        panel->AddRChild(pSearchButton);
                    }

                    {
                        Border* pBorder = new Border(new Thickness(new Length(1, Length::UnitAbsolute), new Length(1, Length::UnitAbsolute), new Length(1, Length::UnitAbsolute), new Length(1, Length::UnitAbsolute)));
                        pBorder->m_LeftBrush = new SolidColorBrush(new Color(0, 0, 0));
                        pBorder->m_TopBrush = new SolidColorBrush(new Color(0, 0, 0));
                        pBorder->m_RightBrush = new SolidColorBrush(new Color(160, 160, 160));
                        pBorder->m_BottomBrush = new SolidColorBrush(new Color(160, 160, 160));
                        {
                            m_searchEdit = new TextEdit;
                        //	m_searchEdit->m_tdp = new TextDocument;
                        //	m_searchEdit->SetText(OLESTR(""));
                            pBorder->set_Content(m_searchEdit);
                        }
                        DockPanel::set_Dock(pBorder, DockPanel::Fill);
                        panel->AddRChild(pBorder);
                    }
                    DockPanel::put_Dock(panel, DockPanel::Top);
                    panel2->AddRChild(panel);
                }
                {
                    Border* pSpacer = new Border;
                    DockPanel::set_Dock(pSpacer, DockPanel::Fill);
                    panel2->AddRChild(pSpacer);
                }
                outerBorder->put_Content(panel2);
            }
            Border* ctl = outerBorder;


            {
                ChildWindow* pWindow = new ChildWindow;
                pWindow->m_computedLeft = 80;//put_Left(pWindow, new Length(100, UnitAbsolute));
                pWindow->m_computedTop = 80;//put_Top(new Length(100, UnitAbsolute));
                pWindow->set_Width(new Length(240, Length::UnitAbsolute));
                pWindow->set_Height(new Length(210, Length::UnitAbsolute));

                if (true)
                {
                    pWindow->set_Content(ctl);
                }
                else
                {
                    ScrollViewer* pScroller = new ScrollViewer;
                    {
                        pScroller->put_Content(ctl/*m_watchWnd*/);
                    }
                    pWindow->set_Content(pScroller);
                }

                pWindow->set_TitleText(OLESTR("Search"));

            //	pWindow->SetOwnerWindow(pCanvas->get_OwnerWindow());	// TODO, not here
                pCanvas->AddChild(pWindow);
            }
            if (true)
            {
                ConnectionsCtl = new TreeControlContainer;
开发者ID:sigurdle,项目名称:FirstProject2,代码行数:67,代码来源:P2PFrame.cpp


注:本文中的Border::put_Content方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。