如何获取屏幕宽,高,状态栏高度
1个回答
展开全部
#include<conio.h>
#include<graphics.h>
W=GetSystemMetrics(SM_CXSCREEN);%获取屏幕宽,高
H=GetSystemMetrics(SM_CYSCREEN);
initgraph(W, H);%创建绘图窗口
HWND hwnd = GetHWnd();
SetWindowLong(hwnd, GWL_STYLE, GetWindowLong(hwnd, GWL_STYLE) -WS_CAPTION);
SetWindowPos(hwnd, HWND_TOP, 0, 0, W, H, SWP_SHOWWINDOW);
#include<graphics.h>
W=GetSystemMetrics(SM_CXSCREEN);%获取屏幕宽,高
H=GetSystemMetrics(SM_CYSCREEN);
initgraph(W, H);%创建绘图窗口
HWND hwnd = GetHWnd();
SetWindowLong(hwnd, GWL_STYLE, GetWindowLong(hwnd, GWL_STYLE) -WS_CAPTION);
SetWindowPos(hwnd, HWND_TOP, 0, 0, W, H, SWP_SHOWWINDOW);
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询