首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > 编程 >

判断控件是不是已经被创建

2012-12-18 
判断控件是否已经被创建// Resize the edit control contained in the view to// fill the entire view wh

判断控件是否已经被创建

// Resize the edit control contained in the view to// fill the entire view when the view's window is// resized. CMdiView is a CView derived class.void CMdiView::OnSize(UINT nType, int cx, int cy) {   CView::OnSize(nType, cx, cy);   // Resize edit to fill the whole view.   // OnSize can be called before OnInitialUpdate   // so make sure the edit control has been created.   if (::IsWindow(m_Edit.GetSafeHwnd()))   {      m_Edit.MoveWindow (0, 0, cx, cy);   }}

热点排行