Jump to content
Tuts 4 You
CodeExplorer

Visual C++ Edit only 500 char maximum length!

Rate this topic

Recommended Posts

fearless

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?

Share this post


Link to post
Share on other sites
atom0s

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.

Share this post


Link to post
Share on other sites

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...