Home > Software engineering >  OutlookBar control button in response to questions
OutlookBar control button in response to questions

Time:09-27



As shown in figure, the mouse to fonts, will be an icon on the left, the left can click on the icon, the right of the no, MainFrm. CPP part of the code is as follows:
Void CMainFrame: : InitializeOutlookBar () {

//Create the image lists, informs 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 () - & gt; LoadIcon (nIcons [I]));
}

Int iFolder.//folder index

//set the image lists for the outlook bar.
M_wndOutlookBar. SetImageList (& amp; 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 (" records management "), 0).
M_wndOutlookBar. InsertItem (iFolder, 0, _T (" senior management "), and 0, NULL);
M_wndOutlookBar. InsertItem (iFolder, 1, _T (" records to calculate the principle "), 1, NULL);

M_wndOutlookBar. SetOwner (this);

}

CodePudding user response:

Icon file format problem, I guess,

CodePudding user response:

Problem or didn't find, import again and again by the way, very helpless
  • Related