Search
 
SCRIPT & CODE EXAMPLE
 

CPP

Disabling console exit button c++

void Console_RemoveExitButton()
{
	HWND hwnd = GetConsoleWindow();
	HMENU hmenu = GetSystemMenu(hwnd, FALSE);
	EnableMenuItem(hmenu, SC_CLOSE, MF_GRAYED);
}
Comment

PREVIOUS NEXT
Code Example
Cpp :: how can we create 4 digit random number in c++ 
Cpp :: c++ looping through a vector 
Cpp :: how to slice vector in c++ 
Cpp :: convert kelvin to Fahrenheit 
Cpp :: word equation numbers 
Cpp :: print counting in c++ 
Cpp :: how to cout in c++ 
Cpp :: find in unordered_map c++ 
Cpp :: insert in vector 
Cpp :: linked list in c++ 
Cpp :: how to generate number in c++ 
Cpp :: c++ syntax 
Cpp :: resize string c++ 
Cpp :: two elements with difference K in c++ 
Cpp :: Nested if...else 
Cpp :: sum array c++ 
Cpp :: iostream c++ 
Cpp :: linked list cycle c++ 
Cpp :: sfml keyboard events cpp 
Cpp :: loop c++ 
Cpp :: loop execution descending order in c++ 
Cpp :: max c++ 
Cpp :: how to fill vector from inputs c++ 
Cpp :: how to pass an array by reference in c++ 
Cpp :: modular exponentiation algorithm c++ 
Cpp :: 2d array of zeros c++ 
Cpp :: c++ write string 
Cpp :: find factorial in c++ using class 
Cpp :: stack data structure c++ 
Cpp :: sort an array in c++ 
ADD CONTENT
Topic
Content
Source link
Name
1+5 =