Click here to Skip to main content
15,909,835 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Getting the Windows FontWidth Pin
Antti Keskinen27-Jan-04 21:46
Antti Keskinen27-Jan-04 21:46 
GeneralRe: Getting the Windows FontWidth Pin
Pazzuzu27-Jan-04 22:00
Pazzuzu27-Jan-04 22:00 
GeneralRe: Getting the Windows FontWidth Pin
Antti Keskinen28-Jan-04 1:39
Antti Keskinen28-Jan-04 1:39 
GeneralRe: Getting the Windows FontWidth Pin
Pazzuzu27-Jan-04 23:04
Pazzuzu27-Jan-04 23:04 
GeneralPaste gif, jpg images Pin
Filomela27-Jan-04 20:25
Filomela27-Jan-04 20:25 
GeneralRe: Paste gif, jpg images Pin
CodeBrain28-Jan-04 21:22
CodeBrain28-Jan-04 21:22 
GeneralRe: Paste gif, jpg images Pin
Filomela29-Jan-04 20:34
Filomela29-Jan-04 20:34 
GeneralRe: Paste gif, jpg images Pin
CodeBrain29-Jan-04 21:30
CodeBrain29-Jan-04 21:30 
As I mentioned the most important part is to implement the IRichEditOleCallback interface. You can use the class REOLECallback which I have found in the internet.

I assume that you use a CRichEditCtrl in a dialog. You must create an object of the REOLECallback class in your OnInitDialog method. Then you have to set yourw callback class as OLE callback for your rich edit ctrl using SendMessage with parameter EM_SETOLECALLBACK! If you have done this it should work.

<br />
IRichEditOleCallback* mREOLECallback = new REOLECallback();<br />
::SendMessage((HWND)m_yourRTFCtrl.GetSafeHwnd(), EM_SETOLECALLBACK, 0, (LPARAM) mREOLECallback);<br />


Unfortunatly I can't give you more details because I don't understand every detail myself. I was happy when it worked with the code I have found in many sources. Smile | :)
You may want to take a look at the description of EM_SETOLECALLBACK and IRichEditOleCallback in the MSDN library. You will find some additional information there.
GeneralRe: Paste gif, jpg images Pin
Filomela1-Feb-04 20:55
Filomela1-Feb-04 20:55 
GeneralRe: Paste gif, jpg images Pin
CodeBrain1-Feb-04 21:12
CodeBrain1-Feb-04 21:12 
GeneralRe: Paste gif, jpg images Pin
CodeBrain2-Feb-04 3:02
CodeBrain2-Feb-04 3:02 
GeneralRe: Paste gif, jpg images Pin
Filomela2-Feb-04 20:35
Filomela2-Feb-04 20:35 
GeneralRe: Paste gif, jpg images Pin
CodeBrain2-Feb-04 21:16
CodeBrain2-Feb-04 21:16 
GeneralRe: Paste gif, jpg images Pin
Filomela16-Feb-04 20:23
Filomela16-Feb-04 20:23 
GeneralRe: Paste gif, jpg images Pin
Filomela26-Mar-04 4:55
Filomela26-Mar-04 4:55 
GeneralAuthenticate the remote user credentials Pin
Mr Bose Dayala27-Jan-04 19:47
Mr Bose Dayala27-Jan-04 19:47 
GeneralFocus problem! Pin
rohit.dhamija27-Jan-04 19:28
rohit.dhamija27-Jan-04 19:28 
GeneralRe: Focus problem! Pin
Antti Keskinen27-Jan-04 21:15
Antti Keskinen27-Jan-04 21:15 
GeneralMore Help Plz Pin
MrNiceBerG27-Jan-04 18:39
MrNiceBerG27-Jan-04 18:39 
GeneralTrying to capture the screen, Getting some Error Pin
santosh k27-Jan-04 18:24
santosh k27-Jan-04 18:24 
GeneralRe: Trying to capture the screen, Getting some Error Pin
Diddy28-Jan-04 22:40
Diddy28-Jan-04 22:40 
GeneralClass/Overloaded funtion help Pin
tekkie241227-Jan-04 16:29
tekkie241227-Jan-04 16:29 
GeneralRe: Class/Overloaded funtion help Pin
Michael Gunlock27-Jan-04 16:45
Michael Gunlock27-Jan-04 16:45 
GeneralRe: Class/Overloaded funtion help Pin
tekkie241228-Jan-04 13:45
tekkie241228-Jan-04 13:45 
Generalsort item in tree control Pin
kendao27-Jan-04 16:21
kendao27-Jan-04 16:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.