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?
This is a discussion on placing a bitmap(paint) ole object in the application within the Windows Programming forums, part of the Platform Specific Boards category; I've used COleInsertDialog to insert OleClientItem's into the application. But I only ever want to insert paint items. Do you ...
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