CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: shjdr7

Search: Search took 0.01 seconds.

  1. Re: How to add images to toolbar buttons for activex control mscomctl.ocx

    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...
  2. Re: How to add images to toolbar buttons for activex control mscomctl.ocx

    To add the first image to a button that is the code
  3. Re: How to add images to toolbar buttons for activex control mscomctl.ocx

    Well, I got the answer.The correct code is as below

    CComVariant vrIndex = 1;

    m_pButton->put_Image(vrIndex );
  4. Re: How to add images to toolbar buttons for activex control mscomctl.ocx

    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...
  5. Re: How to add images to toolbar buttons for activex control mscomctl.ocx

    I got the error description like this
    "ImageList must be initialized before it can be used"
    But how to correct?
  6. How to add images to toolbar buttons for activex control mscomctl.ocx

    //#import "c:\windows\SysWow64\mscomctl.ocx" raw_interfaces_only //in window7

    using namespace MSComctlLib;
    CComPtr<IButtons> pButtons;
    CComPtr<IButton> pButton;...
Results 1 to 6 of 6





Click Here to Expand Forum to Full Width

Featured