首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > 编程 >

edit 设立enable

2012-12-22 
edit 设置enable?1.??As you can?disable other controls, use following method :GetDlgItem(IDC_EDIT)-

edit 设置enable

?1.??As you can?disable other controls, use following method :

GetDlgItem(IDC_EDIT)->EnableWindow(FALSE);

OR :

m_edit_ctrl.EnableWindow(FALSE);

and with? ' TRUE ',? to enable that.

When disable an Edit Control the containing text?becomes?grayed and the caret (text cursor) will be?disappeared (no 'copy' capability).

?? 2.?? You can use SetReadOnly function?(It becomes read_only?and?the
???????? containing text remains Black and caret exists (with 'copy' capability) :

m_edit_ctrl.SetReadOnly(TRUE);

热点排行