1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Hide a window by title in C++?

Discussion in 'C, C++, C#' started by KardoseR, Jul 21, 2014.

  1. KardoseR

    KardoseR Regular Member

    Joined:
    Jul 4, 2012
    Messages:
    445
    Likes Received:
    151
    How can i do this?


    the only thing i got so far is hiding the console window, but i dont know how to hide another one for example Mozilla Firefox...

    this is my code so far

    Code:
    #define _WIN32_WINNT 0x0500
     #include <windows.h> 
    #include <iostream> 
    
    int main() { 
    HWND hWnd = GetConsoleWindow();
     ShowWindow( hWnd, SW_HIDE ); 
    return 0; 
    }