转:http://blog.sina.com.cn/s/blog_61b116b10100ejlz.html 最前端显示: 在MFC中的CMainFrame类的OnCreate函数中加入: ::SetWindowPos(this->m_hWnd,HWND_TOPMOST,10,10,10,10,SWP_NOMOVE|SWP_NOSIZE); 取消最前端显示: ::SetWindowPos(this->m_hWnd,HWND_NOTOPMOST,10,10,10,10,SWP_NOMOVE|SWP_NOSIZE);