如何获取和设置编辑框的“只读”属性?
The CEdit class has a SetReadOnly method which can be called at run-time. Details on MSDN: http://msdn.microsoft.com/en-gb/library/aa279328(VS.60).aspx
GetDlgItem(blah)->SendMessage(EM_SETREADONLY ,1 ,0);
这将把它设置为只读。
From the design window: right-click the edit box, select properties. Its the last option on the Styles tab.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.