I've used COleInsertDialog to insert OleClientItem's into the application. But I only ever want to insert paint items. Do you know how i would automatically insert the paint ole object without having to show a COleInsertDialog dialog box?
I've used COleInsertDialog to insert OleClientItem's into the application. But I only ever want to insert paint items. Do you know how i would automatically insert the paint ole object without having to show a COleInsertDialog dialog box?
Hi
if there is a existing Bitmap file you may use:
COleClientItem::CreateFromFile()
or if you like to allways use a new item
COleClientItem::CreateNewItem()
with
CLSIDFromString
to retrive the proper CLSID for the paint object
reffer to the documentation to use them properly