标签:c++ 窗口 set visible OLE rpo dha window console
#include <windows.h>
const HANDLE handle=GetStdHandle(STD_OUTPUT_HANDLE);//窗口句柄
void Guangbiaohide()
{
CONSOLE_CURSOR_INFO Guangbiao;
GetConsoleCursorInfo(handle,&Guangbiao);
Guangbiao.bVisible = 0;
SetConsoleCursorInfo(handle,&Guangbiao);
}
#include <windows.h>
const HANDLE handle=GetStdHandle(STD_OUTPUT_HANDLE);//窗口句柄
void Guangbiaoxy(int x,int y) {
COORD pos = {x,y};
SetConsoleCursorPosition(handle,pos);
}
c++运行程序 光标隐藏与移动 (c++)(windows)
标签:c++ 窗口 set visible OLE rpo dha window console
原文地址:https://www.cnblogs.com/Srand-X/p/13289959.html