|
@@ -17,8 +17,8 @@
|
|
|
#include "httpapi.h"
|
|
|
#include "qresource.h"
|
|
|
|
|
|
-#include <windows.h>
|
|
|
-#include <tlhelp32.h>
|
|
|
+//#include <windows.h>
|
|
|
+//#include <tlhelp32.h>
|
|
|
#include <stdio.h>
|
|
|
#pragma execution_character_set("utf-8")
|
|
|
Home::Home(QWidget *parent) :
|
|
@@ -54,7 +54,7 @@ Home::Home(QWidget *parent) :
|
|
|
loadNavigate(str);
|
|
|
|
|
|
|
|
|
- HANDLE hCurrentCursor = GetForegroundWindow();
|
|
|
+ /**HANDLE hCurrentCursor = GetForegroundWindow();
|
|
|
qDebug()<<hCurrentCursor<<endl;
|
|
|
// EnumWindows(StaticEnumWindowsProc,reinterpret_cast<LPARAM>(this));
|
|
|
PROCESSENTRY32 pe32;
|
|
@@ -70,10 +70,10 @@ Home::Home(QWidget *parent) :
|
|
|
BOOL bMore=::Process32First(hProcessSnap,&pe32);
|
|
|
|
|
|
::CloseHandle(hProcessSnap);
|
|
|
-
|
|
|
+**/
|
|
|
}
|
|
|
|
|
|
-BOOL Home::StaticEnumWindowsProc(HWND hwnd, LPARAM lParam)
|
|
|
+/**BOOL Home::StaticEnumWindowsProc(HWND hwnd, LPARAM lParam)
|
|
|
{
|
|
|
//窗口是否可视
|
|
|
if (!::IsWindowVisible(hwnd))
|
|
@@ -125,7 +125,7 @@ BOOL Home::StaticEnumWindowsProc(HWND hwnd, LPARAM lParam)
|
|
|
return TRUE;
|
|
|
}
|
|
|
|
|
|
-
|
|
|
+**/
|
|
|
void Home::captureScreen() {
|
|
|
QScreen *screen = QGuiApplication::primaryScreen();
|
|
|
QString filePathName = "timeManager_screencap.jpg";
|