EasyX中更改控制台窗口信息

#include 
#include 
#include 
#include "resource.h"
using namespace std;

int main()
{
	initgraph(800, 600);
	SetWindowText(GetHWnd(), L"沙漠骆驼");//SetConsleTitle
	/*LoadIcon(hIn,)*/
	IMAGE bk;
	loadimage(&bk, L"沙漠骆驼.jpg",800,600);
	putimage(0, 0, &bk);

	setbkmode(TRANSPARENT);
	settextcolor(RGB(0,0,100));
	
	int ch = textheight('什');
	int h = 140;
	outtextxy(260, h, L"什么鬼魅传说");
	outtextxy(260, h + 1 * (ch + 5), L"什么魑魅魍魉妖魔");
	outtextxy(260, h + 2 * (ch + 5), L"只有那鹭鹰在幽幽的高歌");
	outtextxy(260, h + 3 * (ch + 5), L"漫天黄沙掠过");
	outtextxy(260, h + 4 * (ch + 5), L"走遍每个角落");
	outtextxy(260, h + 5 * (ch + 5), L"行走在无尽的苍茫星河");
	outtextxy(260, h + 6 * (ch + 5), L"白天黑夜交错");
	outtextxy(260, h + 7 * (ch + 5), L"如此妖娆婀娜");
	outtextxy(260, h + 8 * (ch + 5), L"蹉跎着岁月又蹉跎了自我");

	system("pause");
	closegraph();
}

 

你可能感兴趣的:(C/C++,EasyX,Win32)