Buttons in Outlook Addin
ATL / WTL / STL
1
Posts
1
Posters
0
Views
1
Watching
-
I have following task: in my custom MS Outlook CommandBar set up icons on buttons, I can't to use PasteFace or PutFaceId methods for this, I must to use Picture property. My code. HICON hi = LoadIcon(_Module.GetModuleInstance(), MAKEINTRESOURCE(IDI_ICON1)); if (hi) { PICTDESC pd; pd.cbSizeofstruct = sizeof(pd); pd.picType = PICTYPE_ICON; pd.icon.hicon = hi; IPictureDispPtr spIPicture; hr = OleCreatePictureIndirect(&pd, IID_IPictureDisp, FALSE, (void **)&spIPicture); hr = spCmdButton->put_Picture(spIPicture); } outlook raise exception "Incorrect parameter" in line with put_Picture call. Can anybody help me with it? Thanks Ernst.