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

    Jul 4, 2012
    Likes Received:
    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

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