| | |
ShowWindow(FindWindow
Please support our C++ advertiser: Intel Parallel Studio Home
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 |
api array based beginner binary bitmap c++ c/c++ calculator char char* class classes coding compile compiler console conversion count database delete deploy desktop developer directshow dll dynamic dynamiccharacterarray email encryption error file forms fstream function functions game givemetehcodez google graph homeworkhelp homeworkhelper iamthwee ifstream input int integer lib linkedlist linker linux list loop looping loops map math matrix memory multiple news node number numbertoword output parameter pointer problem program programming project proxy python random read recursion recursive reference return rpg sorting string strings struct template templates test text tree unix url vector video visualstudio win32 windows winsock word wordfrequency wxwidgets






