Masking a bitmap that is inserted in a CRichEditCtrl please
I have a CRichEditCtrl in which i insert bitmaps/icons. The code i use to do this i took from the following article: http://www.dev-archive.com/Cpp/controls/richedit/article.php/c5383.
My icons/bitmaps that i am inserting are round, and i am having real trouble masking the edges of the icon. The icon's edges, despite being set as a transparent colour in the resource editor, always appear black. Would anyone know how to mask this area please?
I am having real trouble doing this, and so far i have not managed it. I have tried using an icon (with transparent-coloured edges), a bitmap, and a btimap with a mask. None of these seem to make a difference, the icon always appears with the edges showing one colour or another (usually black!).
I can set the colour of the edges in the resource editor to be white for example (as my rich-edit's background is white), but then if the user changes the Windows background colour then you can see the white edges against the newly changed Windows background colour within the rich-edit control.
Ive spent ages on the problem and cannot find how to get it to be fully transparent around the edge of the icon/bitmap in the rich-edit control.
Any help would be very much appreciated. Thank you.
James

