本文整理汇总了C++中CButton::IsWindowEnabled方法的典型用法代码示例。如果您正苦于以下问题:C++ CButton::IsWindowEnabled方法的具体用法?C++ CButton::IsWindowEnabled怎么用?C++ CButton::IsWindowEnabled使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CButton
的用法示例。
在下文中一共展示了CButton::IsWindowEnabled方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: OnCbtnErrorOk
void CErrHandlerDlg::OnCbtnErrorOk()
{
CButton* pomButton = NULL;
CString omStrHandlerName = STR_EMPTY ;
CString omStrControl = STR_EMPTY ;
INT nCheck = 0;
BOOL bIsEnable = TRUE;
// Get the selected handlers either for deleteting or adding and
// add the name in the array
for(int j=0; j<defERROR_HANDLER_NUMBER; j++)
{
pomButton =
(CButton*)GetDlgItem(IDC_CHKB_ERROR_ACTIVE_HANDLER + j);
if(pomButton != NULL )
{
nCheck = pomButton->GetCheck();
bIsEnable = pomButton->IsWindowEnabled();
pomButton->GetWindowText(omStrControl);
omStrControl.Replace(_T("Error"),_T(""));
omStrControl.TrimLeft();
omStrControl.TrimRight();
omStrControl.Replace(' ','_');
omStrHandlerName = omStrControl;
if(nCheck == 1 && bIsEnable != 0 )
{
m_omStrArrayErrorHandler.Add(omStrHandlerName);
}
}
}
CDialog::OnOK();
}
示例2: OnBnClickedOk
void CBusEventHandlerDlg::OnBnClickedOk()
{
CButton* pomButton = NULL;
CString omStrHandlerName = STR_EMPTY ;
CString omStrControl = STR_EMPTY ;
INT nCheck = 0;
BOOL bIsEnable = TRUE;
// Get the selected handlers either for deleteting or adding and
// add the name in the array
for(int j=0; j<defBUSEV_HANDLER_NUMBER; j++)
{
pomButton = (CButton*)GetDlgItem(IDC_CHKB_BUSEV_CONNECT_HANDLER + j);
if(pomButton != NULL )
{
nCheck = pomButton->GetCheck();
bIsEnable = pomButton->IsWindowEnabled();
pomButton->GetWindowText(omStrControl);
omStrControl.TrimLeft();
omStrControl.TrimRight();
omStrControl.Replace(' ','_');
omStrControl.Replace('-','_');
omStrHandlerName = omStrControl;
if(nCheck == 1 && bIsEnable != 0 )
{
m_omStrArrayBusEventHandler.Add(omStrHandlerName);
}
}
}
OnOK();
}
示例3: OnDblclkTree
void CAdminDlg::OnDblclkTree(NMHDR* pNMHDR, LRESULT* pResult)
{
// TODO: Add your control notification handler code here
CButton *Btn = (CButton *)GetDlgItem(IDEDIT);
if (Btn->IsWindowEnabled()) OnEdit();
*pResult = 0;
}
示例4: UpdateButton
void CFormatTabDlg::UpdateButton(CButton& button, BOOL b)
{
if (b != button.IsWindowEnabled())
button.EnableWindow(b);
}