Valhalla Legends Archive

Programming => General Programming => Topic started by: tenbytes on May 30, 2004, 02:10 PM

Title: win32 api question
Post by: tenbytes on May 30, 2004, 02:10 PM
Hey, I need to create an edit box something like AIM's where it can display ANY image type...ummm...does anyone know what AIM uses?  I thought they use an IWebBrowser2 thing, but you can actually paste pictures into the box and are still able to type text...hmm...
Title: Re:win32 api question
Post by: K on May 30, 2004, 03:27 PM
it's probably a RichEdit control.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/commctls/richedit/richeditcontrols/aboutricheditcontrols.asp (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/commctls/richedit/richeditcontrols/aboutricheditcontrols.asp)
Title: Re:win32 api question
Post by: MyndFyre on May 30, 2004, 06:31 PM
Last I checked, RichEdit couldn't do too well with graphics.  I believe that AIM uses the MSHTML DHTML editor control.  I have a managed .NET wrapper for it, but not one for general programming.
Title: Re:win32 api question
Post by: Skywing on May 30, 2004, 06:51 PM
Quote from: Myndfyre on May 30, 2004, 06:31 PM
Last I checked, RichEdit couldn't do too well with graphics.  I believe that AIM uses the MSHTML DHTML editor control.  I have a managed .NET wrapper for it, but not one for general programming.
Can't you link them in as objects or whatever?  I've never done this myself, but AFAIK that's how things like MSN do emoticons.

Of course, you need to convert the images to the correct format beforehand.
Title: Re:win32 api question
Post by: K on May 30, 2004, 08:01 PM
Correct, RichEdit supports embeded objects -- I think you could imbed any OLE object, which is not limited to graphics.
Title: Re:win32 api question
Post by: Stwong on June 09, 2004, 11:19 PM
I remember reading somewhere of something like AIM using the Gecko browser rendering thingy...  you know, Mozilla's browser renderer.  Also note that it's probably some kind of HTML, because everything on AIM is done in HTML in the packets...