VC6.0 CMSHFlexGrid
来源:互联网 发布:unity3d跑酷 编辑:程序博客网 时间:2024/05/23 12:03
m_nRow = 1;
m_nCol = 1;
char * colHead[5] = {"Jone", "Lucy", "Lily", "Oubama", "Bush"};
char * rowHead[3] = {"Computer", "English", "Logic"};
m_flexgrid.SetRow(0);
for(int nCol = 0; nCol < 3; nCol++)
{
m_flexgrid.SetCol(nCol + 1);
m_flexgrid.SetText(rowHead[nCol]);
}
m_flexgrid.SetCol(0);
for(int nRow = 0; nRow < 5; nRow++)
{
m_flexgrid.SetRow(nRow + 1);
m_flexgrid.SetText(colHead[nRow]);
}
m_flexgrid.SetBackColor(RGB(255, 255, 200));
void CCh7Demo7Dlg::OnDblClickMshflexgrid2()
{
// TODO: Add your control notification handler code here
CString szText = m_flexgrid.GetText();
m_value = atof(szText);
UpdateData(false);
m_nRow = m_flexgrid.GetRow();
m_nCol = m_flexgrid.GetCol();
GetDlgItem(IDC_EDIT1)->EnableWindow(true);
GetDlgItem(IDC_EDIT1)->SetWindowText(szText);
GetDlgItem(IDC_BTN_REFER)->EnableWindow(true);
}
void CCh7Demo7Dlg::OnBtnRefer()
{
// TODO: Add your control notification handler code here
UpdateData(true);
CString str;
str.Format("%01.1f",m_value);
m_flexgrid.SetText(str);
GetDlgItem(IDC_EDIT1)->EnableWindow(false);
GetDlgItem(IDC_BTN_REFER)->EnableWindow(false);
}
- VC6.0 CMSHFlexGrid
- CMSHFlexGrid类用法_百度文库
- VC6.0
- VC6.0
- VC6.0
- VC6.0
- VC6.0
- VC6.0
- VC6.0
- vc6.0 字体设置工具(vc6)
- VC6.0的悲哀!
- VC6.0编译器参数设置
- VC6.0输出设置
- VC6.0安装错误
- VC6.0下载地址
- vc6.0调试技巧
- vc6.0调试技巧
- VC6.0编译器参数设置
- apache服务器查看网络爬虫记录的方法
- Tomcat 管理配置
- 经典算法研究:模式匹配(子串匹配)之 KMP 算法(C语言实现版)
- 五大数据库常用SQL比较(三)
- 弹出新网页在新的对话框中打开
- VC6.0 CMSHFlexGrid
- 五大数据库常用SQL比较(四)
- 第十六周实验报告二
- 五大数据库常用SQL比较(五)
- KETTLE 并行任务设置
- 隐藏省略文字特效
- 五大数据库常用SQL比较(六)
- c#产生指定区间的随机数
- HQL查询语句