MFC中如何创建真正全屏的对话框

//MFC用于显示全屏dialog的代码,请事先将dialog的title bar属性设置为false

 CRect m_FullScreenRect;
 int nFullWidth=GetSystemMetrics(SM_CXSCREEN);
 int nFullHeight=GetSystemMetrics(SM_CYSCREEN);

 m_FullScreenRect.left = 0;
 m_FullScreenRect.top = 0;
 m_FullScreenRect.right = m_FullScreenRect.left + nFullWidth;
 m_FullScreenRect.bottom = m_FullScreenRect.top + nFullHeight;

 MoveWindow(0,0,m_FullScreenRect.Width(),m_FullScreenRect.Height(),1); 

你可能感兴趣的:(mfc,dialog)