![]() How do you create an OleObject (IOleObject) using the mentioned OLE API? In order for that function to return an IOleObject pointer, you should prepare many objects before invoking it. The data for sure might be an HBITMAP value that represents an image. The one that I will use here is (OleCreateStaticFromData), which allows us to build an Ole object that contains only a representation without any relative data. Those OLE APIs are started with the prefix (OleCreate). ![]() There are many other ways to create an OLE object (IOleObject). When you refer back to the MSDN article, you will find that it uses the OLE API (OleCreateFromFile), which accepts the name of the file as a string. ![]() ![]() My article is based on the MSDN code “HOWTO: Insert a Bitmap Into an RTF Document Using the RichEdit Control”, and the use of IDataObject Interface. Those articles are not working when the image is in the resource or within a handle (HBITMAP). There are a lot of articles in Codeguru or MSDN that discuss how to insert a bitmap file inside the RichEdit control. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |