Xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
XX Author: ZHS (Cultural man)
XX Contact information: 982376496@qq.com (Contact please specify CSDN)
XX Copyright Notice: Original article, Welcome to comment and Reprint ~ reproduced when you can tell me a sound is the best
XX to say: The author level is limited, inevitably there are shortcomings, please correct me.
Xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Written in front: in the implementation of the company's product production testing tools, encountered the "Limit sample edit box input Length" requirements, find information to be realized;
In OnInitDialog ():
Edit. Setlimittext (6); Edit the member variable of the editing box
Or
CEdit *pedit = (CEdit *) This->getdlgitem (idc_edit);
Pedit->setlimittext (6); Limit sample edit box input length is 6 bytes