Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

Forums:

if(pImage) {        IIMAGE_GetInfo(pImage, &ii);        SETAEERECT(&piip->rcImage, 0, 0, ii.cxFrame, ii.cy);        piip->dcb = StaticRichTextItem_New::InlineImageDrawCB;        piip->pUser = (void*)pImage;        piip->dwImageId = 0;            piip->dwCharCode = (int)szCode;        nErr = IHFont_SetInlineImageParam(pihf, piip);    }

currently all smily images are mapped to ritch text font model using single code (due to IImage interface limitation for dwCharCod). The issue is widely used instant messaging client sends two character key codes as standard. On receiving such message we are not able to display because ritch text can not map with the single character code. so please help if there is any other way to map two character code images?

Yes, rich text model allows only single char code to be mapped to inline images (smiley). The char you set to dwCharCode will be replaced by corresponding image you set. To solve the issue of double char to single char code, you can have some kind of mapping in your app. E.g. :) mapped to # etc.

Yes, rich text model allows only single char code to be mapped to inline images (smiley). The char you set to dwCharCode will be replaced by corresponding image you set. To solve the issue of double char to single char code, you can have some kind of mapping in your app. E.g. :) mapped to # etc.