BCG界面库Outlookbar的问题
来源:百度文库 编辑:神马文学网 时间:2024/04/29 16:16:51
BCG界面库Outlookbar的问题
我用下列代码建立了一个BCG界面的OutlookBar:
if (!m_wndShortcutsBar.Create (strCaption, this,
CRect (0, 0, nInitialWidth, nInitialWidth),
ID_VIEW_OUTLOOKBAR, WS_CHILD | WS_VISIBLE | CBRS_LEFT))
{
TRACE0("Failed to create outlook bar\n");
return FALSE; // fail to create
}
CBCGPOutlookWnd* pShortcutsBarContainer = DYNAMIC_DOWNCAST (CBCGPOutlookWnd,
m_wndShortcutsBar.GetUnderlinedWindow ());
if (pShortcutsBarContainer == NULL)
{
TRACE0("Cannot get outlook bar container\n");
return FALSE;
}
CImageList images;
images.Create (IDB_SHORTCUTS, 32, 0, RGB (255, 0, 255));
// Create first page:
m_wndShortcutsPane1.Create (&m_wndShortcutsBar, dwDefaultToolbarStyle, ID_SHORTCUTS_PANE_1);
m_wndShortcutsPane1.SetOwner (this);
m_wndShortcutsPane1. EnableTextLabels(FALSE);
m_wndShortcutsPane1.EnableDocking (CBRS_ALIGN_ANY);
m_wndShortcutsPane1.AddButton (images.ExtractIcon (0), _T("百度新歌TOP100"), ID_SHORTCUT_1);
m_wndShortcutsPane1.AddButton (images.ExtractIcon (1), _T("百度歌曲TOP500"), ID_SHORTCUT_2);
m_wndShortcutsPane1.AddButton (images.ExtractIcon (1), _T("百度电影金曲"), ID_SHORTCUT_3);
m_wndShortcutsPane1.AddButton (images.ExtractIcon (2), _T("百度电视金曲"), ID_SHORTCUT_4);
m_wndShortcutsPane1.AddButton (images.ExtractIcon (2), _T("百度经典老歌"), ID_SHORTCUT_5);
pShortcutsBarContainer->AddTab (&m_wndShortcutsPane1, _T("歌曲搜索"), 0, FALSE);
m_wndShortcutsPane1.EnableDocking (CBRS_ALIGN_ANY);
生成的OutlookBar都是大图标的,怎么用小图标形式显示呢?就像QQ一样图标在左文字在右那样。
----------------------------------------------------------------------------------------方法:images.Create (IDB_SHORTCUTS, 16, 16, RGB (255, 0, 255));//将图标改成16*16
BCG界面库Outlookbar的问题
解决Windows 程序界面闪烁问题的一些经验-yaodong
解决 Windows 程序界面闪烁问题的一些经验
BCG矩陣的時間因子與產品生命週期曲線
BCG矩陣的時間因子與產品生命週期曲線
可用界面的措词
VS2008 Outlookbar 介绍
界面很烂的原因
GUI / WIMP 界面的局限性
GUI / WIMP 界面的局限性
什么样的界面算是好界面-7个案例
什么样的界面算是好界面-7个案例
WINX与她的团队 - 最简单易用的C 界面库 2006
智能手机:下一代嵌入式系统的界面
最新的web界面交互设计
说说订阅Feed的界面表现
怎样设计人性化的登录界面
关注用户操作界面的文案写作
界面和交互的关系之讨论
角色是用户的可视化界面
让你的软件界面更漂亮
未来的Ubuntu登录界面预览
JSF实现的自选语言界面
Office快捷键:用于界面的快捷键