BreadCrumb控件,如上图所示,即面包屑导航控件,类似于TreeCtrl,但不是一次显示所有的Item,VC++ 2010可以编译通过,稍微修改一下其他的也可以编译,源
sample code
//m_Breadcrumb.Create (rect, this, IDC_BREADCRUMB, WS_CHILD | WS_VISIBLE);
HBREADCRUMBITEM hRoot = m_Breadcrumb.GetRootItem ();
HBREADCRUMBITEM hMusic = m_Breadcrumb.InsertItem (hRoot, _T("Music"), 4);
HBREADCRUMBITEM hPic = m_Breadcrumb.InsertItem (hRoot, _T("Pictures"), 7);
HBREADCRUMBITEM hVideo = m_Breadcrumb.InsertItem (hRoot, _T("Video"), 5);
HBREADCRUMBITEM hTV = m_Breadcrumb.InsertItem (hRoot, _T("Recorded TV"), 6);
HBREADCRUMBITEM hOther = m_Breadcrumb.InsertItem (hRoot, _T("Other Media"), 8);
//Add Child Item
m_Breadcrumb.InsertItem(hMusic, _T("Hello Kitty"));
m_Breadcrumb.InsertItem(hMusic, _T("Hemmingway"));
m_Breadcrumb.InsertItem(hMusic, _T("Doccy"));
m_Breadcrumb.InsertItem(hVideo, _T("MOvew"));
m_Breadcrumb.InsertItem(hVideo, _T("Sexy"));
m_Breadcrumb.InsertItem(hVideo, _T("Good moning"));