📄 lhj_cyglxtdlg.cpp
字号:
if (state=="开单")
{
TableNo="36";
billisnew=TRUE;
CDlgPos pos;
pos.DoModal();
//更新
inittablestate();
initcombox();
}
else
{
if (state=="结帐")
{
ToPayDialog(36);
}
}
}
void CLhj_cyglxtDlg::OnButton37()
{
// TODO: Add your control notification handler code here
UpdateData(TRUE);
CString state;
GetDlgItemText(IDC_BUTTON37,state);
if (state=="开单")
{
TableNo="37";
billisnew=TRUE;
CDlgPos pos;
pos.DoModal();
//更新
inittablestate();
initcombox();
}
else
{
if (state=="结帐")
{
ToPayDialog(37);
}
}
}
void CLhj_cyglxtDlg::OnButton38()
{
// TODO: Add your control notification handler code here
UpdateData(TRUE);
CString state;
GetDlgItemText(IDC_BUTTON38,state);
if (state=="开单")
{
TableNo="38";
billisnew=TRUE;
CDlgPos pos;
pos.DoModal();
//更新
inittablestate();
initcombox();
}
else
{
if (state=="结帐")
{
ToPayDialog(38);
}
}
}
void CLhj_cyglxtDlg::OnButton39()
{
// TODO: Add your control notification handler code here
UpdateData(TRUE);
CString state;
GetDlgItemText(IDC_BUTTON39,state);
if (state=="开单")
{
TableNo="39";
billisnew=TRUE;
CDlgPos pos;
pos.DoModal();
//更新
inittablestate();
initcombox();
}
else
{
if (state=="结帐")
{
ToPayDialog(39);
}
}
}
void CLhj_cyglxtDlg::OnButton40()
{
// TODO: Add your control notification handler code here
UpdateData(TRUE);
CString state;
GetDlgItemText(IDC_BUTTON40,state);
if (state=="开单")
{
TableNo="40";
billisnew=TRUE;
CDlgPos pos;
pos.DoModal();
//更新
inittablestate();
initcombox();
}
else
{
if (state=="结帐")
{
ToPayDialog(40);
}
}
}
void CLhj_cyglxtDlg::OnButton41()
{
// TODO: Add your control notification handler code here
UpdateData(TRUE);
CString state;
GetDlgItemText(IDC_BUTTON41,state);
if (state=="开单")
{
TableNo="41";
billisnew=TRUE;
CDlgPos pos;
pos.DoModal();
//更新
inittablestate();
initcombox();
//要求窗口重画
//InvalidateRect(NULL);UpdateWindow();//没有效果
//?????????????
}
else
{
if (state=="结帐")
{
ToPayDialog(41);
//要求窗口重画
//InvalidateRect(NULL);UpdateWindow();//没有效果
//?????????????
}
}
}
void CLhj_cyglxtDlg::OnButton42()
{
// TODO: Add your control notification handler code here
UpdateData(TRUE);
CString state;
GetDlgItemText(IDC_BUTTON42,state);
if (state=="开单")
{
TableNo="42";
billisnew=TRUE;
CDlgPos pos;
pos.DoModal();
//更新
inittablestate();
initcombox();
}
else
{
if (state=="结帐")
{
ToPayDialog(42);
}
}
}
void CLhj_cyglxtDlg::OnButton43()
{
// TODO: Add your control notification handler code here
UpdateData(TRUE);
CString state;
GetDlgItemText(IDC_BUTTON43,state);
if (state=="开单")
{
TableNo="43";
billisnew=TRUE;
CDlgPos pos;
pos.DoModal();
//更新
inittablestate();
initcombox();
}
else
{
if (state=="结帐")
{
ToPayDialog(43);
}
}
}
void CLhj_cyglxtDlg::OnButton44()
{
// TODO: Add your control notification handler code here
UpdateData(TRUE);
CString state;
GetDlgItemText(IDC_BUTTON44,state);
if (state=="开单")
{
TableNo="44";
billisnew=TRUE;
CDlgPos pos;
pos.DoModal();
//更新
inittablestate();
initcombox();
}
else
{
if (state=="结帐")
{
ToPayDialog(44);
}
}
}
void CLhj_cyglxtDlg::OnButton45()
{
// TODO: Add your control notification handler code here
UpdateData(TRUE);
CString state;
GetDlgItemText(IDC_BUTTON45,state);
if (state=="开单")
{
TableNo="45";
billisnew=TRUE;
CDlgPos pos;
pos.DoModal();
//更新
inittablestate();
initcombox();
}
else
{
if (state=="结帐")
{
ToPayDialog(45);
}
}
}
void CLhj_cyglxtDlg::OnButton46()
{
// TODO: Add your control notification handler code here
UpdateData(TRUE);
CString state;
GetDlgItemText(IDC_BUTTON46,state);
if (state=="开单")
{
TableNo="46";
billisnew=TRUE;
CDlgPos pos;
pos.DoModal();
//更新
inittablestate();
initcombox();
}
else
{
if (state=="结帐")
{
ToPayDialog(46);
}
}
}
void CLhj_cyglxtDlg::OnButton47()
{
// TODO: Add your control notification handler code here
UpdateData(TRUE);
CString state;
GetDlgItemText(IDC_BUTTON47,state);
if (state=="开单")
{
TableNo="47";
billisnew=TRUE;
CDlgPos pos;
pos.DoModal();
//更新
inittablestate();
initcombox();
}
else
{
if (state=="结帐")
{
ToPayDialog(47);
}
}
}
void CLhj_cyglxtDlg::OnButton48()
{
// TODO: Add your control notification handler code here
UpdateData(TRUE);
CString state;
GetDlgItemText(IDC_BUTTON48,state);
if (state=="开单")
{
TableNo="48";
billisnew=TRUE;
CDlgPos pos;
pos.DoModal();
//更新
inittablestate();
initcombox();
}
else
{
if (state=="结帐")
{
ToPayDialog(48);
}
}
}
void CLhj_cyglxtDlg::OnButton49()
{
// TODO: Add your control notification handler code here
UpdateData(TRUE);
CString state;
GetDlgItemText(IDC_BUTTON49,state);
if (state=="开单")
{
TableNo="49";
billisnew=TRUE;
CDlgPos pos;
pos.DoModal();
//更新
inittablestate();
initcombox();
}
else
{
if (state=="结帐")
{
ToPayDialog(49);
}
}
}
void CLhj_cyglxtDlg::OnButton50()
{
// TODO: Add your control notification handler code here
UpdateData(TRUE);
CString state;
GetDlgItemText(IDC_BUTTON50,state);
if (state=="开单")
{
TableNo="50";
billisnew=TRUE;
CDlgPos pos;
pos.DoModal();
//更新
inittablestate();
initcombox();
}
else
{
if (state=="结帐")
{
ToPayDialog(50);
}
}
}
void CLhj_cyglxtDlg::OnButton51()
{
// TODO: Add your control notification handler code here
UpdateData(TRUE);
CString state;
GetDlgItemText(IDC_BUTTON51,state);
if (state=="开单")
{
TableNo="51";
billisnew=TRUE;
CDlgPos pos;
pos.DoModal();
//更新
inittablestate();
initcombox();
}
else
{
if (state=="结帐")
{
ToPayDialog(51);
}
}
}
void CLhj_cyglxtDlg::OnButton52()
{
// TODO: Add your control notification handler code here
UpdateData(TRUE);
CString state;
GetDlgItemText(IDC_BUTTON52,state);
if (state=="开单")
{
TableNo="52";
billisnew=TRUE;
CDlgPos pos;
pos.DoModal();
//更新
inittablestate();
initcombox();
}
else
{
if (state=="结帐")
{
ToPayDialog(52);
}
}
}
void CLhj_cyglxtDlg::OnButton53()
{
// TODO: Add your control notification handler code here
UpdateData(TRUE);
CString state;
GetDlgItemText(IDC_BUTTON53,state);
if (state=="开单")
{
TableNo="53";
billisnew=TRUE;
CDlgPos pos;
pos.DoModal();
//更新
inittablestate();
initcombox();
}
else
{
if (state=="结帐")
{
ToPayDialog(53);
}
}
}
void CLhj_cyglxtDlg::OnButton54()
{
// TODO: Add your control notification handler code here
UpdateData(TRUE);
CString state;
GetDlgItemText(IDC_BUTTON54,state);
if (state=="开单")
{
TableNo="54";
billisnew=TRUE;
CDlgPos pos;
pos.DoModal();
//更新
inittablestate();
initcombox();
}
else
{
if (state=="结帐")
{
ToPayDialog(54);
}
}
}
void CLhj_cyglxtDlg::OnButton55()
{
// TODO: Add your control notification handler code here
UpdateData(TRUE);
CString state;
GetDlgItemText(IDC_BUTTON55,state);
if (state=="开单")
{
TableNo="55";
billisnew=TRUE;
CDlgPos pos;
pos.DoModal();
//更新
inittablestate();
initcombox();
}
else
{
if (state=="结帐")
{
ToPayDialog(55);
}
}
}
void CLhj_cyglxtDlg::OnButton56()
{
// TODO: Add your control notification handler code here
UpdateData(TRUE);
CString state;
GetDlgItemText(IDC_BUTTON56,state);
if (state=="开单")
{
TableNo="56";
billisnew=TRUE;
CDlgPos pos;
pos.DoModal();
//更新
inittablestate();
initcombox();
}
else
{
if (state=="结帐")
{
ToPayDialog(56);
}
}
}
void CLhj_cyglxtDlg::OnButton57()
{
// TODO: Add your control notification handler code here
UpdateData(TRUE);
CString state;
GetDlgItemText(IDC_BUTTON57,state);
if (state=="开单")
{
TableNo="57";
billisnew=TRUE;
CDlgPos pos;
pos.DoModal();
//更新
inittablestate();
initcombox();
}
else
{
if (state=="结帐")
{
ToPayDialog(57);
}
}
}
void CLhj_cyglxtDlg::OnButton58()
{
// TODO: Add your control notification handler code here
UpdateData(TRUE);
CString state;
GetDlgItemText(IDC_BUTTON58,state);
if (state=="开单")
{
TableNo="58";
billisnew=TRUE;
CDlgPos pos;
pos.DoModal();
//更新
inittablestate();
initcombox();
}
else
{
if (state=="结帐")
{
ToPayDialog(58);
}
}
}
void CLhj_cyglxtDlg::OnButton59()
{
// TODO: Add your control notification handler code here
UpdateData(TRUE);
CString state;
GetDlgItemText(IDC_BUTTON59,state);
if (state=="开单")
{
TableNo="59";
billisnew=TRUE;
CDlgPos pos;
pos.DoModal();
//更新
inittablestate();
initcombox();
}
else
{
if (state=="结帐")
{
ToPayDialog(59);
}
}
}
void CLhj_cyglxtDlg::OnButton60()
{
// TODO: Add your control notification handler code here
UpdateData(TRUE);
CString state;
GetDlgItemText(IDC_BUTTON60,state);
if (state=="开单")
{
TableNo="60";
billisnew=TRUE;
CDlgPos pos;
pos.DoModal();
//更新
inittablestate();
initcombox();
}
else
{
if (state=="结帐")
{
ToPayDialog(60);
}
}
}
void CLhj_cyglxtDlg::OnButton13()
{
// TODO: Add your control notification handler code here
UpdateData(TRUE);
CString state;
GetDlgItemText(IDC_BUTTON13,state);
if (state=="开单")
{
TableNo="13";
billisnew=TRUE;
CDlgPos pos;
pos.DoModal();
//更新
inittablestate();
initcombox();
}
else
{
if (state=="结帐")
{
ToPayDialog(13);
}
}
}
void CLhj_cyglxtDlg::OnDestroy()
{
CDialog::OnDestroy();
// delete m_brush;
// TODO: Add your message handler code here
}
HBRUSH CLhj_cyglxtDlg::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor)
{
HBRUSH hbr = CDialog::OnCtlColor(pDC, pWnd, nCtlColor);
// TODO: Change any attributes of the DC here
// TODO: Return a different brush if the default is not desired
//return hbr; /*这里特意将系统返回的画刷屏蔽*/
//return m_brush; /*返回自己制定的蓝色画刷*/
//
for (int i=1;i<nownumber;i++)
{
if ((pWnd->GetDlgCtrlID()==1079+tableuseinfor[i]*2)) /*如果控件的名称为IDC_LINE_STYLE*/
{
pDC->SetTextColor(RGB(0,255,0)); /*将色彩容器中的文字颜色设置为绿色*/
//pDC->SetBkMode(TRANSPARENT); /*设置文字的背景为透明,否则文字背景认为系统默认色*/
pDC->SetBkColor(RGB(255,0,0)); /*设置文字的背景色,注意如果写了上面句的话,背景色无效*/
return m_brush; /*返回1中自定义的画刷句柄,这里注意虽然要求返回的是画刷的句柄,但是我们这里放置一个CBrush对象,不会出错。是因为CBrush有一个HBRUSH的重载*/
}
}
return hbr; /*否则的话返回系统默认的画刷句柄*/
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -