Ribbon状态栏加入图标
HICON hIcon = (HICON) ::LoadImage(AfxGetResourceHandle(), MAKEINTRESOURCE(IDI_ICON1), IMAGE_ICON, 0, 0, LR_SHARED); m_wndStatusBar.AddElement(new CMFCRibbonStatusBarPane(ID_STATUSBAR_COM, _T(""), IDB_BITMAP_COM, 16, RGB(0, 0, 0), hIcon, TRUE, TRUE), _T(""));
必须为32位色深的图标
原文地址:http://blog.51cto.com/9233403/2096241
时间: 2024-11-03 13:19:25