For the 2 parameters lpClassName and lpWindowName in FindWindow, what do i throw in there to hide all open windows? Is this possible? MSDN makes it sound like if both parameters are null, that will do the trick, but before i test it, i want to make sure that works so i dont have to restart my computer before i reverse the action
clutchkiller 3 Junior Poster
Recommended Answers
Jump to Post#include <windows.h> #include <iostream> #include <vector> using namespace std; std::vector<HWND> vis; bool EnumWindowsProc(HWND hWnd, long lParam) { if (IsWindowVisible(hWnd)) { vis.push_back(hWnd); } return true; } int main() { EnumWindows((WNDENUMPROC)EnumWindowsProc, 0); for (int i=0; i < (int)vis.size(); i++) { ShowWindow(vis[i], SW_HIDE); } Sleep(10000); for (int i=0; i < …
All 4 Replies
William Hemsworth 1,339 Posting Virtuoso
clutchkiller 3 Junior Poster
Comatose 290 Taboo Programmer Team Colleague
clutchkiller 3 Junior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.