如何使应用程序窗口居中?如何使窗口不能被用户移动位置? 如何使应用程序窗口居中?如何使窗口不能被用户移动位置? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 CenterWindow()处理OnNCHitTest() Easy, Call Function CWnd:: Center Windows Example(1): CenterWindow(); //Relative to it's parent // Relative to Screen Example(2): CenterWindow(CWnd:: GetDesktopWindow( )); //Relative to Application's MainWindow AfxGetMainWnd()->CenterWindow(); //窗口居中CenterWindow();使窗口不能被用户移动位置去掉状态条,他就没的移了 使窗体不能被移动CMenu *menu = this->GetSystemMenu(FALSE);menu->RemoveMenu(1, MF_BYPOSITION);居中窗体就如各楼上说的 CenterWindow 如何截获发往特定窗口的所有消息? 怎样在我的工程中加入CHtmlView类 错误,快来看看怎么能解决 IMemAllocator成员函数GetBuffer调用失败,怎么解决 如何重载CListView类实现排序功能? html中如何实现图片的嵌入? 关于avi文件的小问题 如何获得View的hwnd?? 急!动态库的调用问题,在线等待. 有谁知道如何将VARIANT类型转换位字符型或CString型 窗口创建后如何修改其风格? 如何显示一个BMP图片
处理OnNCHitTest()
// Relative to Screen
Example(2): CenterWindow(CWnd:: GetDesktopWindow( ));
//Relative to Application's MainWindow
AfxGetMainWnd()->CenterWindow();
CenterWindow();使窗口不能被用户移动位置去掉状态条,他就没的移了
CMenu *menu = this->GetSystemMenu(FALSE);
menu->RemoveMenu(1, MF_BYPOSITION);居中窗体就如各楼上说的 CenterWindow