hi,

I want to copy a big text from richedit to clipboard, but only 32kb were copied...
I tried WM_COPY and SetClipboardData(), but both sucks.
Any suggestions, please ?

(S)
Posted on 2002-09-01 13:49:58 by Sm?rebr?d
Sm?rebr?d,



SendMessage hEdit,%EM_EXLIMITTEXT,0,100000000


Just give this a try and see if it effects the maximum you can transfer to the clipboard.

Regards,

hutch@movsd.com
Posted on 2002-09-02 03:26:17 by hutch--
Thank you, hutch,

My programm uses EXLIMITTEXT but not the programm, I wanted to copy the text to.
It wasn't a COPY error, only a PASTE error ;-))

Thanks
(S)
Posted on 2002-09-02 08:12:57 by Sm?rebr?d
Sm?rebr?d - apologies for digressing from your topic in this thread

hutch - i'm very interested in what made you choose to set EM_EXLIMITTEXT to 100000000 - i saw you'd used that in the richedit sample with masm32

obviously it is a VERY LARGE NUMBER but was the choice empirical or do you have some knowledge you could share with us?

i was having a problem editing 50-60k files even after setting EM_EXLIMITTEXT to 200k and it wasn't until i set EM_EXLIMITTEXT to minimum of (400000) or (9*file size) that the problem seems to have stopped

while i'm on: well done for all the stuff you're doing for this 'community' and i thought i'd let you know that even some of us 'pommies' enjoy your aussie humour...

regards
eGo
Posted on 2002-09-02 16:53:36 by eGo
eGo,

I have found that using very large numbers removes the problem of self imposed limits, in test I can get 50 meg + into a rich edit control but it is slow because of the line count. Practical limit depending on how you load the control is about 10 - 15 meg.

--------------
and i thought i'd let you know that even some of us 'pommies' enjoy your aussie humour...
--------------

I am glad someone gets it. :tongue:

Regards,

hutch@movsd.com
Posted on 2002-09-02 21:38:49 by hutch--
ok - thanks
Posted on 2002-09-03 01:43:43 by eGo