IPictureDisp Issues

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Frank Oquendo

    #1

    IPictureDisp Issues

    I'm developing an addin for an application. All interaction takes place
    via COM. I've had no luck trying to associate an icon with a UI element
    such as a button within the host application.

    So I did some searching and found instructions on how to derive from
    AxHost to expose the GetIPictureDisp FromPicture method. Unfortunately,
    the image is incorrectly scaled and the colors seem inverted. I then
    switched to using GIF files. That solves the color issue but the images
    still suffer from incorrect scaling.

    Does anyone know of a solution to this problem or have an alternative
    solution?

    --
    There are 10 kinds of people. Those who understand binary and those who
    don't.


    (Pull the pin to reply)


Working...