CPropertySheet的使用 我在CPropertySheet中加入了几个属性页,在每个属性页中有几个编辑框,我想在CPropertySheet调用DoModal()前使某属性页中的编辑框变为不可用,应该怎么办? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 某属性页的OnInitDialog里设置 EnableWindow BOOL CMod2Page::OnInitDialog() { CPropertyPage::OnInitDialog(); // TODO: Add extra initialization here if(!m_pSavePrint.m_bCanEdit) m_edit.EnableWindow(FALSE); return TRUE; // return TRUE unless you set the focus to a control // EXCEPTION: OCX Property Pages should return FALSE}代码如上可是edit仍然可用 if(!m_pSavePrint.m_bCanEdit) 是什么?你要确保 确实执行了m_edit.EnableWindow(FALSE); cocos2d-x中,怎么开启debugDraw? 怎么加入背景图片? TREECTRL如果同时使用不同大小的图标? 字符串问题 [求助]界面打印,急急急 为什么我的鼠标钩子不能得到鼠标双击的消息 怎样如实PropertySheet在用户按了OK后不关闭窗口? 串口接收数据的中文显示问题!(高分) 请教高手关于打印预览的问题! 如何使用CProgressCtrl创建进度条? 如何取得CString的源码呢? 聘有经验的VC开发人员
{
CPropertyPage::OnInitDialog(); // TODO: Add extra initialization here
if(!m_pSavePrint.m_bCanEdit)
m_edit.EnableWindow(FALSE);
return TRUE; // return TRUE unless you set the focus to a control
// EXCEPTION: OCX Property Pages should return FALSE
}
代码如上可是edit仍然可用
你要确保 确实执行了m_edit.EnableWindow(FALSE);