本文整理汇总了C++中CImageView::setInfoView方法的典型用法代码示例。如果您正苦于以下问题:C++ CImageView::setInfoView方法的具体用法?C++ CImageView::setInfoView怎么用?C++ CImageView::setInfoView使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CImageView
的用法示例。
在下文中一共展示了CImageView::setInfoView方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: OnCreate
LRESULT CMainWindow::OnCreate (UINT /*msg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL &bHandled) {
bHandled = false;
subscribe(this);
SetWindowText(MAIN_TITLE);
if (m_ctrlMain == NULL) {
m_ctrlMain.reset(new xl::ui::CCtrlMain(this, this));
}
#if 0 // move to file list ready
// gesture
m_ctrlMain->enableGesture(true);
m_ctrlMain->setStyle(_T("background:none"));
xl::ui::CControlPtr gestureCtrl = m_ctrlMain->getGestureCtrl();
gestureCtrl->setStyle(_T("color:#ff0000; font-size:16;"));
#endif
// the view
CImageView *pView = new CImageView(this);
m_view = xl::ui::CControlPtr(pView);
m_ctrlMain->insertChild(m_view);
// nav button (left and right)
xl::ui::CControlPtr navbtn(new CNavButton(true));
navbtn->setStyle(_T("width:200; margin:0 0; disable:true;"));
m_ctrlMain->insertChild(navbtn);
m_navbtn[0] = navbtn;
navbtn.reset(new CNavButton(false));
navbtn->setStyle(_T("width:200; margin:0 0; disable:true;"));
m_ctrlMain->insertChild(navbtn);
m_navbtn[1] = navbtn;
// toolbar
xl::ui::CControlPtr toolbar(new CAutobar(0, 75, 25, 300, 25));
m_toolbar = toolbar;
toolbar->setStyle(_T("border-top:0 #d0d0d0; py:top; height:48; float:true; disable:true"));
toolbar->setStyle(_T("background-color:#cccccc"));
m_ctrlMain->insertChild(toolbar);
// toobar -> layoutor
toolbar.reset(new xl::ui::CControl());
toolbar->setStyle(_T("margin:0 auto; padding:0 2; float:true; py:top; width:208;"));
m_toolbar->insertChild(toolbar);
// toolbar -> layoutor -> buttons
xl::ui::CControlPtr button(new CToolbarButton(ID_NAV_ZOOMIN, _T(""), IDB_ZOOMIN, true));
button->setStyle(_T("margin:8 16; width:32; height:32;"));
toolbar->insertChild(button);
button.reset(new CToolbarButton(ID_NAV_ZOOMOUT, _T(""), IDB_ZOOMOUT, true));
button->setStyle(_T("margin:8 16 8 0; width:32; height:32;"));
toolbar->insertChild(button);
button.reset(new CToolbarButton(ID_NAV_SWITCH, _T(""), IDB_SWITCH, true));
button->setStyle(_T("margin:8 16 8 0; width:32; height:32;"));
toolbar->insertChild(button);
button.reset(new CToolbarButton(ID_SETTING, _T(""), IDB_SETTING, true));
button->setStyle(_T("margin:8 16 8 0; width:32; height:32;"));
toolbar->insertChild(button);
// navbar
xl::ui::CControlPtr navbar(new CAutobar(0, 75, 25, 300, 25));
m_navbar = navbar;
navbar->setStyle(_T("margin:0; padding:0; border-top:0 #d0d0d0; py:bottom; width:fill; height:120; float:true; disable:true"));
m_ctrlMain->insertChild(navbar);
// navbar -> infoview
CInfoView *pInfoView = new CInfoView(this);
xl::ui::CControlPtr infoview(pInfoView);
infoview->setStyle(_T("margin:0; padding:2 0; width:fill; height:20; background-color:#000000"));
m_navbar->insertChild(infoview);
pView->setInfoView(pInfoView);
// navbar -> thumbnail
xl::ui::CControlPtr thumbview(new CThumbnailView(this));
thumbview->setStyle(_T("margin:0; padding:0; width:fill; height:70; background-color:#000000"));
m_navbar->insertChild(thumbview);
// navbar -> slider
xl::ui::CControlPtr slider(new CSlider());
m_slider = slider;
slider->setStyle(_T("margin:0 0; width:fill; height:30;"));
slider->setStyle(_T("slider:0 0 0;"));
m_navbar->insertChild(slider);
// naviewbar
navbar.reset(new CAutobar(0, 75, 25, 300, 25));
navbar->setStyle(_T("margin:0 210 100 0; padding:0; px:right; py:bottom; width:140; height:200; float:true; background-color:#000000; disable:true"));
m_ctrlMain->insertChild(navbar);
m_naview = navbar;
// naviewbar -> naview
CNavView *pNavView = new CNavView(this, pView);
xl::ui::CControlPtr naview(pNavView);
naview->setStyle(_T("border:1 #ffffff; padding:20 4 4 4;"));
navbar->insertChild(naview);
pView->setNavView(pNavView);
//.........这里部分代码省略.........