码迷,mamicode.com
首页 > 其他好文 > 详细

ATL环境:设置窗口激活属性

时间:2017-12-19 19:31:53      阅读:116      评论:0      收藏:0      [点我收藏+]

标签:rpo   pos   evel   显示   enable   属性   result   col   led   

设置窗口激活属性:窗口A->B->C,这里设置在C对话框显示时A和B都不能操作

LRESULT sindykTools::AttrPOIDlg::OnBatchCreateSubPointButton(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled)
{
  // Dialog
  BatchCreatSubPointDlg batchCreatDlg;
  batchCreatDlg.initialize( poiRows );

  CWindow fatherWindow = GetTopLevelParent();
  fatherWindow.EnableWindow(FALSE);

  batchCreatDlg.DoModal();

  fatherWindow.EnableWindow(TRUE);
  // ...
}
 

 

ATL环境:设置窗口激活属性

标签:rpo   pos   evel   显示   enable   属性   result   col   led   

原文地址:http://www.cnblogs.com/zifeiye/p/8066038.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!