如题,得到了一个ICON,想在richedit控件的最前面 输出这个ICON,怎么实现?
有人说 利用DC 可以实现,具体应该怎么完成?

解决方案 »

  1.   

    class CImageDataObject : IDataObject
    {
    public:
    // This static fumction accepts those parameters:
    // IRichEditOle* : a pointer to IRochEditOle interface for the RichEdit Control
    // HBITMAP : the bitmap handle.
    //
    // After calling the function, it inserts the image in the current 
    //    position of the RichEdit
    //
    static void InsertBitmap(IRichEditOle* pRichEditOle, HBITMAP hBitmap);