这几句代码失去的是什么,官网英文看不明白啊新手求解
这几句代码得到的是什么,官网英文看不明白啊,新手求解
------解决方案--------------------
------解决方案--------------------
windows 很多函数 都 使用,cx,cy 表示 宽高 这个 c 是 约定
SM_CXBORDER,
SM_CYBORDER Width and height, in pixels, of a window border.
------解决方案--------------------
http://msdn.microsoft.com/en-us/library/windows/desktop/ms724385(v=vs.85).aspx
自己看看msdn的解释
SM_XVIRTUALSCREEN
76
The coordinates for the left side of the virtual screen. The virtual screen is the bounding rectangle of all display monitors. The SM_CXVIRTUALSCREEN metric is the width of the virtual screen.
SM_YVIRTUALSCREEN
77
The coordinates for the top of the virtual screen. The virtual screen is the bounding rectangle of all display monitors. The SM_CYVIRTUALSCREEN metric is the height of the virtual screen.
SM_CXVIRTUALSCREEN
78
The width of the virtual screen, in pixels. The virtual screen is the bounding rectangle of all display monitors. The SM_XVIRTUALSCREEN metric is the coordinates for the left side of the virtual screen.
SM_CYVIRTUALSCREEN
79
The height of the virtual screen, in pixels. The virtual screen is the bounding rectangle of all display monitors. The SM_YVIRTUALSCREEN metric is the coordinates for the top of the virtual screen.
m_cxStart = GetSystemMetrics(SM_XVIRTUALSCREEN);
m_cyStart = GetSystemMetrics(SM_YVIRTUALSCREEN);
m_cxWidth = GetSystemMetrics(SM_CXVIRTUALSCREEN);
m_cyHeight = GetSystemMetrics(SM_CYVIRTUALSCREEN);
------解决方案--------------------
m_cxStart = GetSystemMetrics(SM_XVIRTUALSCREEN); //屏幕左上角X座标
m_cyStart = GetSystemMetrics(SM_YVIRTUALSCREEN); //屏幕左上角Y座标
m_cxWidth = GetSystemMetrics(SM_CXVIRTUALSCREEN); //屏幕的长度
m_cyHeight = GetSystemMetrics(SM_CYVIRTUALSCREEN);//屏幕的宽度
------解决方案--------------------
windows 很多函数 都 使用,cx,cy 表示 宽高 这个 c 是 约定
SM_CXBORDER,
SM_CYBORDER Width and height, in pixels, of a window border.
------解决方案--------------------
http://msdn.microsoft.com/en-us/library/windows/desktop/ms724385(v=vs.85).aspx
自己看看msdn的解释
SM_XVIRTUALSCREEN
76
The coordinates for the left side of the virtual screen. The virtual screen is the bounding rectangle of all display monitors. The SM_CXVIRTUALSCREEN metric is the width of the virtual screen.
SM_YVIRTUALSCREEN
77
The coordinates for the top of the virtual screen. The virtual screen is the bounding rectangle of all display monitors. The SM_CYVIRTUALSCREEN metric is the height of the virtual screen.
SM_CXVIRTUALSCREEN
78
The width of the virtual screen, in pixels. The virtual screen is the bounding rectangle of all display monitors. The SM_XVIRTUALSCREEN metric is the coordinates for the left side of the virtual screen.
SM_CYVIRTUALSCREEN
79
The height of the virtual screen, in pixels. The virtual screen is the bounding rectangle of all display monitors. The SM_YVIRTUALSCREEN metric is the coordinates for the top of the virtual screen.