Jump to content
Tuts 4 You

Visual C++ Edit only 500 char maximum length!


Recommended Posts

Maybe something in the MFC is setting the default max to 500 chars. Anyway to ignore the MFC CEdit stuff and just create a standard Edit control instead?

Link to comment

MFC just wraps around CreateWindow using EDIT as the control class. Setting the limit of the text just wraps around SendMessage using the limit length message id. So it would be whatever Windows limits the default EDIT control to. Should work fine with using 0 as the value for the length to let it max out to what Windows can handle though.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...