Hide cursor when displaying the menu.
This commit is contained in:
parent
d1a22936b0
commit
d44e2397f7
14
Menu.cpp
14
Menu.cpp
|
@ -15,10 +15,24 @@ Menu::Menu(_TCHAR *inifile)
|
|||
|
||||
/* For exiting on defaults */
|
||||
ftime(&beginning);
|
||||
|
||||
/* No cursor please! */
|
||||
HANDLE out = GetStdHandle(STD_OUTPUT_HANDLE);
|
||||
CONSOLE_CURSOR_INFO cursorInfo;
|
||||
|
||||
GetConsoleCursorInfo(out, &cursorInfo);
|
||||
cursorInfo.bVisible = false;
|
||||
SetConsoleCursorInfo(out, &cursorInfo);
|
||||
}
|
||||
|
||||
Menu::~Menu(void)
|
||||
{
|
||||
HANDLE out = GetStdHandle(STD_OUTPUT_HANDLE);
|
||||
CONSOLE_CURSOR_INFO cursorInfo;
|
||||
|
||||
GetConsoleCursorInfo(out, &cursorInfo);
|
||||
cursorInfo.bVisible = true;
|
||||
SetConsoleCursorInfo(out, &cursorInfo);
|
||||
}
|
||||
|
||||
void Menu::DisplayPrompt()
|
||||
|
|
Loading…
Reference in New Issue