如何检测有游戏或视频正在全屏播放?? 如何检测有游戏或视频正在全屏播放?? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 static CWnd* PASCAL WindowFromPoint(POINT point)int GetDeviceCaps(int nIndex )找到屏幕四个角的点 看CWnd是不是一个 如果是 就是全屏的程序没有试现在试一下 Sleep(5000); CWnd* pWnd1 = NULL; CWnd* pWnd2 = NULL; CWnd* pWnd3 = NULL; CWnd* pWnd4 = NULL; CDC* pDC = GetWindowDC(); INT iWidth = GetDeviceCaps(pDC->m_hDC,HORZRES); INT iHeight = GetDeviceCaps(pDC->m_hDC,VERTRES); POINT pt1; pt1.x = 1; pt1.y = 1; POINT pt2; pt2.x = 1; pt2.y = iHeight-1; POINT pt3; pt3.x = iWidth-1; pt3.y = 1; POINT pt4; pt4.x = iWidth-1; pt4.y = iHeight-1; pWnd1 = WindowFromPoint(pt1); pWnd2 = WindowFromPoint(pt2); pWnd3 = WindowFromPoint(pt3); pWnd4 = WindowFromPoint(pt4); if(pWnd1 == pWnd2 && pWnd2 == pWnd3 && pWnd3 == pWnd4) AfxMessageBox("full screen run!"); else AfxMessageBox("no full screen!");试了一下 可以检测到 windows中有没有哪个头文件可以代替Linux下的<uuid/uuid.h>? RichEdit变量显示在RichEdit框里每行字体颜色不同和SetTimer函数第三个参数问题 程序一开始初始化一个数组怎么弄 dll导出函数参数传递的问题 通过程序生成快捷方式 gridctrl中能动态增加行数吗 一个简单的C++问题,在线等待。 100分:工具栏的定制问题,发言就有分,人少分就多,Re: 请问各位怎么样在我的程序里调用"IE的Internet设置"选项? Visual C++访问Oracle数据源? 动态创建的ListBox用法的菜鸟问题!请教大家!!! 散分咯~~~ 110分
int GetDeviceCaps(int nIndex )
找到屏幕四个角的点 看CWnd是不是一个 如果是 就是全屏的程序
没有试现在试一下
CWnd* pWnd1 = NULL;
CWnd* pWnd2 = NULL;
CWnd* pWnd3 = NULL;
CWnd* pWnd4 = NULL; CDC* pDC = GetWindowDC(); INT iWidth = GetDeviceCaps(pDC->m_hDC,HORZRES);
INT iHeight = GetDeviceCaps(pDC->m_hDC,VERTRES);
POINT pt1;
pt1.x = 1;
pt1.y = 1;
POINT pt2;
pt2.x = 1;
pt2.y = iHeight-1;
POINT pt3;
pt3.x = iWidth-1;
pt3.y = 1;
POINT pt4;
pt4.x = iWidth-1;
pt4.y = iHeight-1; pWnd1 = WindowFromPoint(pt1);
pWnd2 = WindowFromPoint(pt2);
pWnd3 = WindowFromPoint(pt3);
pWnd4 = WindowFromPoint(pt4); if(pWnd1 == pWnd2 && pWnd2 == pWnd3 && pWnd3 == pWnd4)
AfxMessageBox("full screen run!");
else
AfxMessageBox("no full screen!");试了一下 可以检测到