GetWindowRect(&m_rcMain);//restore the src screen's size;
//delete the showing window's caption
LONG style = GetWindowLong(m_hWnd,GWL_STYLE);
style &=~WS_CAPTION;
//set the window's show sytle
SetWindowLong(m_hWnd,GWL_STYLE,style);
//get the screen's pixel
int screenX = GetSystemMetrics(SM_CXSCREEN);
int screenY = GetSystemMetrics(SM_CYSCREEN);
//show window
SetWindowPos(NULL,0,0,screenX,screenY,SWP_NOZORDER);为什么 int screenX = GetSystemMetrics(SM_CXSCREEN);
int screenY = GetSystemMetrics(SM_CYSCREEN); 只能获得当前窗口区域的大小,而不是整个屏幕??怎样获得整个屏幕的区域???
//delete the showing window's caption
LONG style = GetWindowLong(m_hWnd,GWL_STYLE);
style &=~WS_CAPTION;
//set the window's show sytle
SetWindowLong(m_hWnd,GWL_STYLE,style);
//get the screen's pixel
int screenX = GetSystemMetrics(SM_CXSCREEN);
int screenY = GetSystemMetrics(SM_CYSCREEN);
//show window
SetWindowPos(NULL,0,0,screenX,screenY,SWP_NOZORDER);为什么 int screenX = GetSystemMetrics(SM_CXSCREEN);
int screenY = GetSystemMetrics(SM_CYSCREEN); 只能获得当前窗口区域的大小,而不是整个屏幕??怎样获得整个屏幕的区域???
解决方案 »
- 列表控件 在对列表进行修改的时候是不是会向主窗口发送消息?
- 怎么控制驱动查找对话框的弹出,系统弹出驱动查找框怎么控制让它自动完成安装
- 静态文本框中的字体能和控件一样在窗口中放大或缩小嘛
- ??? MIME 过滤 ???
- 快疯掉了,vc+ado如何连接oracle
- 基础版进不去啦,只好在这里问一个文本文件的读取的问题
- 在编写一个clock控件时候出现的问题,怎么画不了图。。。
- 怎样开发一个word文档ActiveX,此控件要能嵌入其它语言中使用,具有word的功能,思路是怎样,谢谢大家了??????
- 【求助】子线程中无法修改全局变量
- ListView中如何响应回车事件
- 在窗口中添加按钮时遇到的奇怪的问题
- MFC 对话框,一个很诡异的现象
SetWindowPos(NULL,0,0,screenX,screenY,SWP_NOZORDER);
修改成
SetWindowPos(m_hWnd,0,0,screenX,screenY,SWP_NOZORDER);
就能让你的窗体全屏了。