MFC
2009.09.01 10:30

커맨드 창 속성 제어

조회 수 34123 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

+ - Up Down Comment Print
?

단축키

Prev이전 문서

Next다음 문서

+ - Up Down Comment Print
MSDN에서 Console Function으로 찾아보면 알 수 있음.
예를 들면 SetConsoleTextAttribute() 는 커맨드 창의 글자색과 배경색을 바꿔주는 함수임.

 
Platform SDK: DLLs, Processes, and Threads

Console Functions

The following functions are used to access a console.

Function Description
AddConsoleAlias Defines a console alias for the specified executable.
AllocConsole Allocates a new console for the calling process.
AttachConsole Attaches the calling process to the console of the specified process.
CreateConsoleScreenBuffer Creates a console screen buffer.
FillConsoleOutputAttribute Sets the text and background color attributes for a specified number of character cells.
FillConsoleOutputCharacter Writes a character to the console screen buffer a specified number of times.
FlushConsoleInputBuffer Flushes the console input buffer.
FreeConsole Detaches the calling process from its console.
GetConsoleAlias Retrieves the specified alias for the specified executable.
GetConsoleAliases Retrieves all defined console aliases for the specified executable.
GetConsoleAliasesLength Returns the size, in bytes, of the buffer needed to store all of the console aliases for the specified executable.
GetConsoleAliasExes Retrieves the names of all executables with console aliases defined.
GetConsoleAliasExesLength Returns the size, in bytes, of the buffer needed to store the names of all executables that have console aliases defined.
GenerateConsoleCtrlEvent Sends a specified signal to a console process group that shares the console associated with the calling process.
GetConsoleCP Retrieves the input code page used by the console associated with the calling process.
GetConsoleCursorInfo Retrieves information about the size and visibility of the cursor for the specified console screen buffer.
GetConsoleDisplayMode Retrieves the display mode of the current console.
GetConsoleFontSize Retrieves the size of the font used by the specified console screen buffer.
GetConsoleMode Retrieves the current input mode of a console's input buffer or the current output mode of a console screen buffer.
GetConsoleOutputCP Retrieves the output code page used by the console associated with the calling process.
GetConsoleProcessList Retrieves a list of the processes attached to the current console.
GetConsoleScreenBufferInfo Retrieves information about the specified console screen buffer.
GetConsoleSelectionInfo Retrieves information about the current console selection.
GetConsoleTitle Retrieves the title bar string for the current console window.
GetConsoleWindow Retrieves the window handle used by the console associated with the calling process.
GetCurrentConsoleFont Retrieves information about the current console font.
GetLargestConsoleWindowSize Retrieves the size of the largest possible console window.
GetNumberOfConsoleInputEvents Retrieves the number of unread input records in the console's input buffer.
GetNumberOfConsoleMouseButtons Retrieves the number of buttons on the mouse used by the current console.
GetStdHandle Retrieves a handle for the standard input, standard output, or standard error device.
HandlerRoutine An application-defined function used with the SetConsoleCtrlHandler function.
PeekConsoleInput Reads data from the specified console input buffer without removing it from the buffer.
ReadConsole Reads character input from the console input buffer and removes it from the buffer.
ReadConsoleInput Reads data from a console input buffer and removes it from the buffer.
ReadConsoleOutput Reads character and color attribute data from a rectangular block of character cells in a console screen buffer.
ReadConsoleOutputAttribute Copies a specified number of foreground and background color attributes from consecutive cells of a console screen buffer.
ReadConsoleOutputCharacter Copies a number of characters from consecutive cells of a console screen buffer.
ScrollConsoleScreenBuffer Moves a block of data in a screen buffer.
SetConsoleActiveScreenBuffer Sets the specified screen buffer to be the currently displayed console screen buffer.
SetConsoleCP Sets the input code page used by the console associated with the calling process.
SetConsoleCtrlHandler Adds or removes an application-defined HandlerRoutine from the list of handler functions for the calling process.
SetConsoleCursorInfo Sets the size and visibility of the cursor for the specified console screen buffer.
SetConsoleCursorPosition Sets the cursor position in the specified console screen buffer.
SetConsoleMode Sets the input mode of a console's input buffer or the output mode of a console screen buffer.
SetConsoleOutputCP Sets the output code page used by the console associated with the calling process.
SetConsoleScreenBufferSize Changes the size of the specified console screen buffer.
SetConsoleTextAttribute Sets the foreground (text) and background color attributes of characters written to the console screen buffer.
SetConsoleTitle Sets the title bar string for the current console window.
SetConsoleWindowInfo Sets the current size and position of a console screen buffer's window.
SetStdHandle Sets the handle for the standard input, standard output, or standard error device.
WriteConsole Writes a character string to a console screen buffer beginning at the current cursor location.
WriteConsoleInput Writes data directly to the console input buffer.
WriteConsoleOutput Writes character and color attribute data to a specified rectangular block of character cells in a console screen buffer.
WriteConsoleOutputAttribute Copies a number of foreground and background color attributes to consecutive cells of a console screen buffer.
WriteConsoleOutputCharacter Copies a number of characters to consecutive cells of a console screen buffer.


Dreamy의 코드 스크랩

내가 모으고 내가 보는

List of Articles
번호 분류 제목 날짜 조회 수 추천 수
16 MFC MFC app 디버깅 출력을 위한 콘솔 생성하기 2009.09.01 39751 0
» MFC 커맨드 창 속성 제어 2009.09.01 34123 0
14 MFC 도스 커맨드 실행하기 1 2009.09.01 43985 0
13 MFC Cstring methods 2009.04.21 49664 0
12 MFC 비트맵 비교 2009.03.23 36588 0
11 MFC 현재디렉토리의 파일리스트들을 알아오는 클래스 CFindFile 2008.05.07 55877 0
10 MFC 현재 실행된 어플리케이션의 디렉토리 적용하기 2008.05.07 35308 0
9 MFC 리사이징 다이얼로그(Resizing dialog) 2008.03.24 42154 0
8 MFC 시스템 출력 리디렉션 - 도스 커맨드 결과 받아오기 file 2007.08.14 48103 0
7 MFC 노트패드를 이용한 덤프 file 2006.05.19 29870 0
6 MFC 시작프로그램 레지스트리에 등록/해제 함수 2006.04.14 41335 0
5 MFC [C] Unicode 사용에 대하여 2006.04.14 43182 0
4 MFC API를 이용하는 유니코드와 ANSI 문자열간의 변환 방법 2006.04.14 56914 0
3 MFC CString을 유니코드로 변환 WCHAR에 저장하는 방법 1 2006.04.14 51566 0
2 MFC 다이얼로그 기반 APP에서 Edit에 엔터키 먹게 하기 2006.04.14 38284 0
목록
Board Pagination ‹ Prev 1 2 3 Next ›
/ 3

나눔글꼴 설치 안내


이 PC에는 나눔글꼴이 설치되어 있지 않습니다.

이 사이트를 나눔글꼴로 보기 위해서는
나눔글꼴을 설치해야 합니다.

설치 취소

Designed by sketchbooks.co.kr / sketchbook5 board skin

Sketchbook5, 스케치북5

Sketchbook5, 스케치북5

Sketchbook5, 스케치북5

Sketchbook5, 스케치북5