代码搜索:SetConsoleTextAttribute
找到约 36 项符合「SetConsoleTextAttribute」的源代码
代码结果 36
www.eeworm.com/read/451589/7461422
cpp m_02.cpp
// M_02.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include
#include
#include
#include
#include
s
www.eeworm.com/read/387950/7217755
asm echoline.asm
;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
; Sample code for < Win32ASM Programming 2nd Edition>
; by 罗云彬, http://asm.yeah.net
;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
www.eeworm.com/read/439540/7706472
asm echoline.asm
;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
; Sample code for < Win32ASM Programming 2nd Edition>
; by 罗云彬, http://asm.yeah.net
;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
www.eeworm.com/read/321672/13401043
cpp main.cpp
#include"jiapu.h"
#include"frame.h"
#include"else.h"
void main()
{
HANDLE hOut;HANDLE hIn;
hOut = GetStdHandle(STD_OUTPUT_HANDLE);// 获取标准输出设备句柄
hIn = GetStdHandle(STD_INPUT_HANDLE); // 获
www.eeworm.com/read/104715/15684601
cpp studinfomanager.cpp
// StudInfoManager.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include "StudInfoManager.h"
#include "TypeDef.h"
#include "conio.h"
#include "Taxis.h"
www.eeworm.com/read/288856/8598381
asm console.asm
include .\head.inc
.data
buffer db "Press Any Key to Continue",0
con db "CON",0
hCon dd ?
act dd ?
.code
start:
invoke GetStdHandle,STD_OUTPUT_HANDLE
mov hCon,eax
invoke SetConsoleTextAttri
www.eeworm.com/read/181350/9257497
h setcolor.h
#include "windows.h"
#include "conio.h"
void setcolor(unsigned short ForeColor=4,unsigned short BackGroundColor=0)
{
HANDLE hCon=GetStdHandle(STD_OUTPUT_HANDLE); //本例以输出为例
SetConsoleTextAttrib
www.eeworm.com/read/469457/6977059
cpp colorconsole.cpp
#
// color your text in Windows console mode
#
// colors are 0=black 1=blue 2=green and so on to 15=white
#
// colorattribute = foreground + background * 16
#
// to get red text on yellow use 4
www.eeworm.com/read/444846/7605277
cpp color.cpp
// color.cpp: implementation of the color class.
//
//////////////////////////////////////////////////////////////////////
#include "color.h"
#include
//////////////////////////
www.eeworm.com/read/401752/11551070
cpp color.cpp
#include "color.h"
#include
void color::setcolor(unsigned short ForeColor, unsigned short BackGroundColor)
{
HANDLE hCon = GetStdHandle(STD_OUTPUT_HANDLE);
SetConsoleTextAttribute(