把源码贴出来看看
通常对应button1为OnButton1,对应button2为OnButton2...
你可以用DDX来做,即增加成员变量
通常对应button1为OnButton1,对应button2为OnButton2...
你可以用DDX来做,即增加成员变量
解决方案 »
- WTL 滚动条没有反应(100分求助)
- 非常疑惑!!!!一个意思 不同结果?!?
- CMYK转RGB?
- CString Format问题一问
- 用什么方法可以获得网上邻居中的所用连接信息?
- 不使用MFC框架,如何实现property sheet
- 在VC6.0技术内幕中介绍字体那一章有一个疑问,请帮忙。
- 那位高手知道从什么地方下载代理源代码?
- win2000下网络问题二个,高手们帮帮忙了!!!!!
- 混合高斯背景模型OpenCV的cvaux中cvbgfg_gaussmix.cpp
- 我用installshield做安装程序,安装完后,桌面上面也没有,开始菜单里面也没有,怎么做啊?
- 由字串怎么转化成16进制数呢?如“FE”->0XFE?
DDX_Control(pDX, IDC_BUTTON_CHANNEL_8, m_ctlChannel8);
DDX_Control(pDX, IDC_BUTTON_CHANNEL_7, m_ctlChannel7);
DDX_Control(pDX, IDC_BUTTON_CHANNEL_6, m_ctlChannel6);
DDX_Control(pDX, IDC_BUTTON_CHANNEL_5, m_ctlChannel5);
DDX_Control(pDX, IDC_BUTTON_CHANNEL_4, m_ctlChannel4);
DDX_Control(pDX, IDC_BUTTON_CHANNEL_3, m_ctlChannel3);
DDX_Control(pDX, IDC_BUTTON_CHANNEL_24, m_ctlChannel24);
ON_BN_CLICKED(IDC_BUTTON_CHANNEL_1, OnButtonChannel1)
ON_BN_CLICKED(IDC_BUTTON_CHANNEL_10, OnButtonChannel10)
ON_BN_CLICKED(IDC_BUTTON_CHANNEL_11, OnButtonChannel11)
ON_BN_CLICKED(IDC_BUTTON_CHANNEL_12, OnButtonChannel12)
ON_BN_CLICKED(IDC_BUTTON_CHANNEL_13, OnButtonChannel13)
ON_BN_CLICKED(IDC_BUTTON_CHANNEL_14, OnButtonChannel14)
ON_BN_CLICKED(IDC_BUTTON_CHANNEL_15, OnButtonChannel15)
void CSelectDialog::OnButtonChannel1()
{
// TODO: Add your control notification handler code here
MessageBox ( "Hello " );
if ( m_bState[0] )
{
m_ctlChannel1.SetState ( FALSE );
m_bState[0] = false;
}
else //
{
m_ctlChannel1.SetState ( TRUE );
m_bState[0] = true;
}
}void CSelectDialog::OnButtonChannel10()
{
// TODO: Add your control notification handler code here
MessageBox ( "Hello " );
if ( m_bState[9] )
{
m_ctlChannel10.SetState ( FALSE );
m_bState[9] = false;
}
else //
{
m_ctlChannel10.SetState ( TRUE );
m_bState[9] = true;
}
}
再按下BUTTON2时看看执行哪些操作?