Please help me to make unlimited string length of EditBox in MASM32

Started by elmo, October 19, 2010, 06:17:31 AM

Previous topic - Next topic

elmo

I found example in
\masm32\examples\exampl02\qikpad  to save a file.

It only can contains 1000 lines 1000 columns..
Can you help me to make it become unlimited lines and columns.

Thank you
Fritz Gamaliel
be the king of accounting programmer world!

jj2007

;     QikPad is a functional text editor written around a normal edit
;     control. It has a size limit of 32k which is dictated by the
;     operating system for a control of this type.


Farabi

Try to use richedit, but I dont know will it have unlimited line of chars.
Those who had universe knowledges can control the world by a micro processor.
http://www.wix.com/farabio/firstpage

"Etos siperi elegi"

Antariy

Quote from: FritzCAT22 on October 19, 2010, 06:17:31 AM
I found example in
\masm32\examples\exampl02\qikpad  to save a file.

It only can contains 1000 lines 1000 columns..
Can you help me to make it become unlimited lines and columns.

Thank you
Fritz Gamaliel

Use this, hWnd is a handle of main window, which contain an Edit, IdCtl is an ID of Edit control.

invoke SendDlgItemMessage,hWnd,IdCtl,EM_LIMITTEXT,7FFFFFFEh,0


7FFFFFFEh - is a max size of text which can be entered. You can use any value.

This allow you enter about 2GB of text into Edit control under Windows NT. 64 KB limit is under Win9x.



Alex

jj2007

Alex is right - I stand corrected.

QuoteEM_LIMITTEXT Message

Sets the text limit of an edit control. The text limit is the maximum amount of text, in TCHARs, that the user can type into the edit control. You can send this message to either an edit control or a rich edit control.