| | |
ShowWindow(FindWindow
Thread Solved
![]() |
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
Last edited by clutchkiller; Jan 7th, 2009 at 7:39 pm.
>That confuses me =(
Get used to it. Good programmers are in a constant state of confusion.
>Looks like i have some quasi specifics to investigate! Up Up And AWAY!
Get used to it. Good programmers are in a constant state of confusion.
>Looks like i have some quasi specifics to investigate! Up Up And AWAY!
I looked that function up, but im still confused, could you elaborate on a proper method to hide all open windows? Im still a new programmer/windows programmer.
>That confuses me =(
Get used to it. Good programmers are in a constant state of confusion.
>Looks like i have some quasi specifics to investigate! Up Up And AWAY!
Get used to it. Good programmers are in a constant state of confusion.
>Looks like i have some quasi specifics to investigate! Up Up And AWAY!
c++ Syntax (Toggle Plain Text)
#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 < (int)vis.size(); i++) { ShowWindow(vis[i], SW_SHOW); } return 0; }
![]() |
Similar Threads
- Hiding a window. (C++)
- FindWindow() won't find the handle I'm looking for (C++)
- ShowWindow(hWnd, SW_HIDE); Does not work -- Only with "SW_HIDE" ??? (C++)
- ::FindWindow()'s problem (C++)
- Help printing on screen (C++)
- Cbuilder Fullscreen form how to ??? (C++)
Other Threads in the C++ Forum
- Previous Thread: Linker issue LNK 2019 LNK2005
- Next Thread: mistake in simple math function
| Thread Tools | Search this Thread |
ace_thread api array based binary bitmap borland c++ c/c++ calling char class classes code coding compile console conversion count delete delete-line deploy desktop developer directshow dll download dynamic dynamiccharacterarray email embedded encryption error file forms fstream function functions game givemetehcodez graph gui homeworkhelp homeworkhelper iamthwee ifstream information input int integer java lib linkedlist linker loop looping loops map math mathhomeworkhelp matrix memory multiple news node number numbertoword output parameter pointer problem program programming project python random read recursion reference reverse richedit rpg string strings temperature template test text text-file tree url variable vector video win32 windows winsock word wordfrequency wxwidgets






