css
asked on
Limit text in CEdit control
I've a CEdit control in a View derived from CFormView.
I've declared a variable m_edit, pointer to CEdit assigned in DoDataExchange.
I call the function m_edit.SetLimitText(LIMIT) ;
It doesn't works.
I've tried creating the control by myself and it was ok, but
I need to use the derived control instead of this.
Thanks
I've declared a variable m_edit, pointer to CEdit assigned in DoDataExchange.
I call the function m_edit.SetLimitText(LIMIT)
It doesn't works.
I've tried creating the control by myself and it was ok, but
I need to use the derived control instead of this.
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
You can also set this value through the class-wizard, member variables page.
1) Make sure that you are doing a correct DDX_CONTROL in the DoDataExchange.
2) Remember that changing the text limit does not effect text that is already in the control, meaning, it will not truncate it.
-=- James.
2) Remember that changing the text limit does not effect text that is already in the control, meaning, it will not truncate it.
-=- James.