
如圖,滑鼠滑到字體,左邊會出現一個圖示。左邊圖示可以點擊,右邊的不行。MainFrm.cpp部分代碼如下:
void CMainFrame::InitializeOutlookBar(){
// Create the image lists used by the outlook bar.
m_ImageLarge.Create(48, 48, ILC_COLOR32 | ILC_MASK, 2, 2);
for (int i = 0; i<5; i++) {
m_ImageLarge.Add(AfxGetApp()->LoadIcon(nIcons[i]));
}
int iFolder;//folder索引
// set the image lists for the outlook bar.
m_wndOutlookBar.SetImageList(&m_ImageLarge, OBS_XT_LARGEICON);
// Add items to the Outlook Bar control.
// Add the first folder to the outlook bar.
iFolder = m_wndOutlookBar.AddFolder(_T("記錄管理"), 0);
m_wndOutlookBar.InsertItem(iFolder, 0, _T("高層管理"), 0, NULL);
m_wndOutlookBar.InsertItem(iFolder, 1, _T("記錄算理"), 1, NULL);
m_wndOutlookBar.SetOwner(this);
}
uj5u.com熱心網友回復:
圖示檔案格式問題。我猜。
uj5u.com熱心網友回復:
問題原因還是沒找到,重新匯入一遍又對了。很無奈
轉載請註明出處,本文鏈接:https://www.uj5u.com/gongcheng/85627.html
標籤:界面
上一篇:復選框單擊事件的回應問題?
下一篇:對話框問題
