August 15th, 2013, 09:28 AM
Images can be added to imagelist during design time or run time. Adding during design time is very easy.Please verify
yourself.
If you want code to add images run time, I can help it. First image...
August 12th, 2013, 10:35 AM
To add the first image to a button that is the code
August 11th, 2013, 02:07 AM
Well, I got the answer.The correct code is as below
CComVariant vrIndex = 1;
m_pButton->put_Image(vrIndex );
August 10th, 2013, 06:22 AM
I changed my code and then error message also changed
hr = m_pToolbar->put_ImageList(m_pImageList);// Added this line this time
hr = m_pButton->put_Image(vrImage);//I am getting error message...
August 9th, 2013, 12:39 AM
I got the error description like this
"ImageList must be initialized before it can be used"
But how to correct?
August 8th, 2013, 07:56 AM
//#import "c:\windows\SysWow64\mscomctl.ocx" raw_interfaces_only //in window7
using namespace MSComctlLib;
CComPtr<IButtons> pButtons;
CComPtr<IButton> pButton;...