在A对话框中声明B对话框类并:
CB bDlg;
if (bDlg.DoModal() == IDOK)
{
int i = bDlg.kComBox.GetCurSel(); //kComBox CComboBox
}
出错啊!我怎么做最好呢?
CB bDlg;
if (bDlg.DoModal() == IDOK)
{
int i = bDlg.kComBox.GetCurSel(); //kComBox CComboBox
}
出错啊!我怎么做最好呢?
解决方案 »
- Lunux下 open与Windows下的fopen转换
- [Help]如果使用EnumProcess和TerminateProcess关闭指定的进程?
- VC2005中,访问类成员函数,会出现error LNK2019: 无法解析的外部符号 的错误,怎么办?
- 跪求email客户端源码
- 如何设置CListBox的Style??
- the classwizard entry for the class "CT1View" is missing or corrupt in ths classwizard database file "d:\vc\t1\t1.clw";
- 计算两个字符串的语意相近度
- 一个只有真正的高手才能解决的问题!!!!!!!!!!!!!!!!!!!!!!!!
- 感谢everandforever(Forever),RedFire(丹焰)!来领分吧!
- Win32 Release和win32 debug有什么不同?
- 菜鸟问题--CListBox怎么出现水平滚动条阿
- 为什么我的网易泡泡上不了
在CB的OK按钮响应函数中添加 index = hDlg.kComBox.GetCurSel();
然后
if (bDlg.DoModal() == IDOK)
{
int i = bDlg.index;
}
在CB的OK按钮响应函数中添加 index = hDlg.kComBox.GetCurSel();
然后
if (bDlg.DoModal() == IDOK)
{
int i = bDlg.index;
}