Can I set a maximum length to an edit box?

This is a discussion on Can I set a maximum length to an edit box? within the Windows Programming forums, part of the Platform Specific Boards category; Can I set a maximum length to an edit box? So it would use es_autohscroll but doesn't let enter more ...

  1. #1
    Reverse Engineer maxorator's Avatar
    Join Date
    Aug 2005
    Location
    Estonia
    Posts
    2,318

    Can I set a maximum length to an edit box?

    Can I set a maximum length to an edit box? So it would use es_autohscroll but doesn't let enter more than for example 5 chars?

  2. #2
    Even death may die... Dante Shamest's Avatar
    Join Date
    Apr 2003
    Location
    Malaysia
    Posts
    970
    I think EM_LIMITTEXT does that.

  3. #3
    Reverse Engineer maxorator's Avatar
    Join Date
    Aug 2005
    Location
    Estonia
    Posts
    2,318
    Ok, thanks

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Multiline Edit Box Parser
    By The Brain in forum Windows Programming
    Replies: 6
    Last Post: 11-01-2005, 07:15 PM
  2. Set Button / Edit box font
    By willc0de4food in forum Windows Programming
    Replies: 2
    Last Post: 09-30-2005, 11:21 AM
  3. How to program a "back" button with MFC
    By 99atlantic in forum Windows Programming
    Replies: 3
    Last Post: 04-26-2005, 09:34 PM
  4. setting fixed floats in edit box
    By WaterNut in forum Windows Programming
    Replies: 4
    Last Post: 08-13-2004, 10:13 AM
  5. Tab Controls - API
    By -KEN- in forum Windows Programming
    Replies: 7
    Last Post: 06-02-2002, 10:44 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21