#include <windows.h>
#include <stdlib.h>
BOOL CALLBACK WndEnumProc(HWND hWnd, LPARAM)
{
char szClassName[256];
::GetClassNameA(hWnd, szClassName, _countof(szClassName));
if (::lstrcmpiA(szClassName, "NOTEPAD") == 0) {
MoveWindow(hWnd, 0, 0, 300, 300, TRUE);
Sleep(1000);
MoveWindow(hWnd, 300, 300, 300, 300, TRUE);
Sleep(1000);
MoveWindow(hWnd, 500, 500, 300, 300, TRUE);
}
return TRUE;
}
int main()
{
WinExec("notepad", SW_SHOW);
::EnumWindows(WndEnumProc, 0);
return 0;
}
如果文章或资源对您有帮助,欢迎打赏作者。一路走来,感谢有您!
txttool.com 说一段 esp56物联 查询128 IP查询