void CCashVoucherView::OnCbnSelchangeComboMarket()
{
// TODO: Add your control notification handler code here
CString strMarket;
int nIndex=m_cbMarket.GetCurSel();
m_cbMarket.GetLBText(nIndex,strMarket);
if (strMarket==_T(""))
{
m_nEnableSubmitBn=m_nEnableSubmitBn&253;//1111,1110--254--0x11111110
}
else
{
m_nEnableSubmitBn=m_nEnableSubmitBn^1;//0000,0001--1--0x00000001
}
EnableSubmitbn(m_nEnableSubmitBn);
}
void CCashVoucherView::EnableSubmitbn(int nStatusSubmitBn)
{
if (nStatusSubmitBn==31)//0001,1111
{
GetDlgItem(IDC_BUTTON_SUBMIT)->EnableWindow(TRUE);
}
else
{
GetDlgItem(IDC_BUTTON_SUBMIT)->EnableWindow(FALSE);
}
}