⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 textmove.cpp

📁 WinCE下文字滚动的实例
💻 CPP
字号:
// TextMove.cpp : Defines the entry point for the application.
//

#include "stdafx.h"
#include "TextWnd.h"

int WINAPI WinMain(	HINSTANCE hInstance,
					HINSTANCE hPrevInstance,
					LPTSTR    lpCmdLine,
					int       nCmdShow)
{
 	// TODO: Place code here.

	CTextWnd txtWnd;
	txtWnd.Create(hInstance,NULL,TEXT("TextWnd"),TEXT("TextWnd"));
	txtWnd.SetDirection(DRT_UP);
	txtWnd.SetText(TEXT("向上滚动\n第二行信息"));
	txtWnd.Play();
	txtWnd.ShowWindow(TRUE);

	MSG msg;
	while(GetMessage(&msg,NULL,0,0))
	{
		TranslateMessage(&msg);
		DispatchMessage(&msg);
	}

	return 0;
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -