Moderators:TrackerSupp-Daniel, Tracker Support, Paul - Tracker Supp, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Ivan - Tracker Software, Tracker Supp-Stefan
Forum rules DO NOT post your license/serial key, or your activation code - these forums, and all posts within, are public and we will be forced to immediately deactivate your license.
When experiencing some errors, use the IAUX_Inst::FormatHRESULT method to see their description and include it in your post along with the error code.
I've created a custom button.
In the FullDemo I added an image to the resources (MyIcon.png).
Now I want to add that image as the icon of my custom button.
Well the sample I gave you uses the CreateIconFromIStream method. Basically you can create the IStream for the memory only usage. Take a look at the FullDemo application - there is a sample on how to use the ISream.
Can't find anything about the PDFXEdit.IStream in the FullDemo application.
It only contains the IStreamWrapper which implements the System.Runtime.InteropServices.ComTypes.IStream interface.
I don't understand how I can use that in the uiInst.CreateIconFromIStream() function.
Well basically you can push the Bitmap into a memory stream and then use the IStreamWrapper to pass it into the method.
Though I've found a better way of doing this with using Bitmap's handle (if it works for you):