Thread: Edit/Rich Edit window size restrictions

  1. #1
    Registered User
    Join Date
    Sep 2001
    Posts
    39

    Edit/Rich Edit window size restrictions

    When creating an edit/rich edit window is there anyway to overcome the size restrictions? Rich edit windows only hold 32k, while edit windows can hold up to 65,535 bytes.

    After visiting Microsoft's website I learned that Wordpad uses MFC's doc/view architecture to display/edit plain text, etc. Can the same results be achieved without using MFC? (I mean using C since I don't have visual C++).

    Thanks

    Echidna

  2. #2
    S­énior Member
    Join Date
    Jan 2002
    Posts
    982
    You can upgrade your Windows version to get more space from an edit control or stream text to a Rich-edit. Look up the EDITSTREAM struct.

  3. #3
    Registered User
    Join Date
    Sep 2001
    Posts
    39
    Thanks Sorensen, you set me in the right direction.

    I searched for EM_STREAMOUT and found a site that also explained the default text limit in a rich control is 32k, but can be set higher with the EM_EXLIMITTEXT message.

    I tried the value 0x7ffffffd and it set the limit to 173,536 bytes -- haven't tested higher values yet...

    thanks again

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. char Handling, probably typical newbie stuff
    By Neolyth in forum C Programming
    Replies: 16
    Last Post: 06-21-2009, 04:05 AM
  2. Getting interior window size
    By ulillillia in forum Windows Programming
    Replies: 3
    Last Post: 03-21-2009, 07:27 PM
  3. Trouble with DMA Segmentation Faults
    By firestorm717 in forum C Programming
    Replies: 2
    Last Post: 05-07-2006, 09:20 PM
  4. Difficulty superclassing EDIT window class
    By cDir in forum Windows Programming
    Replies: 7
    Last Post: 02-21-2002, 05:06 PM
  5. Edit controls not sending messages to parent window
    By EMiller in forum Windows Programming
    Replies: 5
    Last Post: 11-13-2001, 11:03 PM