textmove.cpp

来自「WinCE下文字滚动的实例」· C++ 代码 · 共 31 行

CPP
31
字号
// 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 + =
减小字号Ctrl + -
显示快捷键?