placing a bitmap(paint) ole object in the application

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 ...

  1. #1
    mr ed
    Guest

    Exclamation placing a bitmap(paint) ole object in the application

    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?

  2. #2
    Registered User
    Join Date
    Aug 2001
    Posts
    72
    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

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. How would you do this (object interlinking)
    By darksaidin in forum C++ Programming
    Replies: 7
    Last Post: 08-30-2003, 01:08 AM
  2. Set Classes
    By Nicknameguy in forum C++ Programming
    Replies: 13
    Last Post: 10-31-2002, 02:56 PM
  3. Set Classes
    By Nicknameguy in forum C++ Programming
    Replies: 3
    Last Post: 10-21-2002, 08:40 PM
  4. Creating object of type HWND from a dll
    By Unregistered in forum Windows Programming
    Replies: 2
    Last Post: 03-13-2002, 12:40 AM
  5. Exporting Object Hierarchies from a DLL
    By andy668 in forum C++ Programming
    Replies: 0
    Last Post: 10-20-2001, 02:26 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21