窗体标签控件

上传:越丽 Ly 浏览: 20 推荐: 0 文件:RAR 大小:1.78MB 上传时间:2020-09-28 10:17:35 版权申诉
可参考此例使用标签控件,部分代码 void CDemoDlg::OnSelchangeTab(NMHDR* pNMHDR, LRESULT* pResult) { //获得当前标签项 int nSel = m_ctrlTab.GetCurSel(); CString strText = _T(""); strText.Format(_T("Tab %d"), nSel + 1); SetDlgItemText(IDC_EDIT, strText); } void CDemoDlg::InitTab() { //向标签控件中插入项 for (int n = 0 ; n
上传资源
用户评论