Help with RTF Control?

I took sample from Charles Petzold poppad.  I converted the edit control to a RTF control and it compiles and runs ok.  But when I paste a large amount of data.  it doesnt seem to take the whole data.  the file size is about
is 765kb.  Can a rtf take this much data on it?  If not is there another possible way to take large standard text of data.( Playing with making my own text editor )
Here is what I did to change it

I included the following (Using VC++ 6.0 )
comctrl32.lib

the following header files:
#include <commctrl.h>
#include <richedit.h>

and created the control like so:

             hwndEdit = CreateWindow( "RichEdit", "",
                                      WS_CHILD | WS_VISIBLE | ES_MULTILINE |
                                      ES_SAVESEL | WS_HSCROLL | WS_VSCROLL,
                                      0, 0,
                                      0, 0,
                                      hwnd,
                                      (HMENU) EDITID, hInst, NULL );

And it compiles and runs but doesnt take all the data.

Any ideas.
eric07Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

NickRepinCommented:
SendMessage(hwndEdit,EM_EXLIMITTEXT,0,nmaxSize)

By default, RE accepts 32 or 64k
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
eric07Author Commented:
Thanks allot it worked great.  I noticed you can even set the size higher like 9000000.  Is there a upper bounds limit?  Can I put as much as I can and if I do what is the penalties?

Thanks
0
NickRepinCommented:
No penalties, if I'm not wrong.
You can set any value, but the actual text size will be limited by the available memory (including the paging file on the hard disk). Several megabytes at least.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Development

From novice to tech pro — start learning today.