CMFCRibbonBaseElement中控件,例如编辑框,如何使能?
1个回答
展开全部
CEdit::SetReadOnly
BOOLSetReadOnly(BOOLbReadOnly=TRUE);
Return Value
Nonzero if the operation is successful, or 0 if an error occurs.
Parameters
bReadOnly
Specifies whether to set or remove the read-only state of the
edit control. A value of TRUE sets the state to read-only; a value of
FALSE sets the state to read/write.
Remarks
Calls this function to set the read-only state of an edit control.
The current setting can be found by testing the ES_READONLY flag in the return value of CWnd::GetStyle.
For more information, see
EM_SETREADONLY in the Win32 documentation.
BOOLSetReadOnly(BOOLbReadOnly=TRUE);
Return Value
Nonzero if the operation is successful, or 0 if an error occurs.
Parameters
bReadOnly
Specifies whether to set or remove the read-only state of the
edit control. A value of TRUE sets the state to read-only; a value of
FALSE sets the state to read/write.
Remarks
Calls this function to set the read-only state of an edit control.
The current setting can be found by testing the ES_READONLY flag in the return value of CWnd::GetStyle.
For more information, see
EM_SETREADONLY in the Win32 documentation.
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询