Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

c++ hide console

/*
Anwser from greper
Made by Mega145
query: c++ hide console
*/
#include <Windows.h>
void HideConsole()
{
    ::ShowWindow(::GetConsoleWindow(), SW_HIDE);
}

void ShowConsole()
{
    ::ShowWindow(::GetConsoleWindow(), SW_SHOW);
}

bool IsConsoleVisible()
{
    return ::IsWindowVisible(::GetConsoleWindow()) != FALSE;
}

void ToggleConsole()
{
	if (!IsConsoleVisible())
    {
      ShowConsole();
    }
    else if (IsConsoleVisible())
    {
      HideConsole();
    }
}
 
PREVIOUS NEXT
Tagged: #hide #console
ADD COMMENT
Topic
Name
2+6 =