TC中的window()函数,在VC的控制台下用什么函数替换?
发布网友
发布时间:2024-10-08 23:16
我来回答
共2个回答
热心网友
时间:2024-10-08 23:54
你所说的子窗口已经被多窗口应用替代了,可以多开几个窗口。
windows中所有可用的MSDOS窗口函数:
"AllocConsole Creates a console for the current process",
"CreateConsoleScreenBuffer Returns a handle to a new screen buffer",
"FillConsoleOutputAttribute Writes attributes to the screen buffer",
"FillConsoleOutputCharacter Writes characters to the screen buffer",
"FlushConsoleInputBuffer Clears the console input buffer",
"FreeConsole Frees the current console",
"GenerateConsoleCtrlEvent Generates a console control event",
"GetConsoleCP Get current console input codepage",
"GetConsoleOutputCP Get current console output codepage",
"GetConsoleCursorInfo Returns console size and visibility",
"GetConsoleMode Returns console input or output mode",
"GetConsoleScreenBufferInfo Returns screen-buffer information",
"GetConsoleTitle Returns console-window title",
"GetLargestConsoleWindowSize Returns largest possible window size",
"GetNumberOfConsoleInputEvents Retrieves number of console-queue events",
"GetNumberOfConsoleMouseButtons Retrieves number of mouse buttons",
"PeekConsoleInput Previews console input data",
"ReadConsoleInput Reads console input data",
"ReadConsoleOutput Reads screen-buffer data",
"ReadConsoleOutputAttribute Reads a console attribute string",
"ReadConsoleOutputCharacter Reads a screen-buffer string",
"ScrollConsoleScreenBuffer Scrolls data in the screen buffer",
"SetConsoleActiveScreenBuffer Changes displayed screen buffer",
"SetConsoleCP Sets console input codepage",
"SetConsoleOutputCP Sets console output codepage",
"SetConsoleCursorInfo Sets cursor size and visibility",
"SetConsoleCursorPosition Sets cursor position",
"SetConsoleMode Sets console input or output mode",
"SetConsoleScreenBufferSize Changes screen-buffer size",
"SetConsoleTextAttribute Sets attributes for screen text",
"SetConsoleTitle Sets console-window title string",
"SetConsoleWindowInfo Sets console window size",
"SetConsoleCtrlHandler Sets console ctrl-c handler",
"WriteConsoleInput Writes to console input buffer",
"WriteConsoleOutput Writes to screen buffer",
"WriteConsoleOutputAttribute Writes an attribute string to console",
"WriteConsoleOutputCharacter Writes a character string to console"
热心网友
时间:2024-10-08 23:53
这个windows函数是16位DOS实模式下的函数,直接调用BIOS的,而WINDOWS系统本身(从2k,XP及以上)开始就不允许这样做了...
不单单是有没有这个函数的问题,而是你的操作系统不允许这样做的问题