I am creating an UserControl with XtraRichEdit using C#.Net and using the User Control in a MFC dialog based Application.I am able to display the User Control with XtraRichEdit Control in MFC Dialog,but cannot edit any Text.Please find the attached Sample project.
We have closed this ticket because another page addresses its subject:
XtraRichEdit in MFC dialog: Text can't be edited.
Hi Reeza,
I'm afraid I can't find an appropriate solution to your problem, because I can't compile your project. It seems that you project doesn't contains MFC02.rc2 file.
Here is error message:
Error 2 fatal error RC1015: cannot open include file 'res\MFC02.rc2'. c:\Temp\Q263242\RichTextControlTest\MFC02\MFC02.rc 196 MFC02
Can you please post here a valid project? That will make the situation clearer.
Thanks,
Elliot
Please find the attached Sample Project.
Thanks
Reeza
Hi Reeza,
Thank you for providing valid source code.
I've reproduced the problem, but, unfortunately, I can't immediately tell you how to resolve it. We'll examine this issue and contact you as soon as we find a solution. Please bear with us.
Thanks,
Elliot
Hi ,
I am following up the issue .We are actually evaluating if the RichEditText control can be used in MFC Application.Is the problem I reported is a bug ?If so will it be available soon or have to wait for next release.
Thanks in Advance
Reeza
Hi Reeza,
Please accept my sincere apologies for the delay in responding.
It appears that the cause of the problem is that the RichEditControl.KeyPressed event doesn't raised in your project. At present, I have no idea concerning what the cause of this problem is, sorry.
Thanks,
Elliot
Hi Reeza,
Also, I suggest that you review the following articles for additional information:
Custom controls in a dialog to get keyboard input,
How To Use the WM_GETDLGCODE Message.
Hope this helps.
Thanks,
Elliot