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

📄 gestureapp.cpp

📁 基于点轨迹的手势识别.鼠标右键点击开始记录鼠标轨迹,基于记录的轨迹,利用神经网络算法进行识别.
💻 CPP
字号:
#include "stdafx.h"
#include "main.h"

#pragma comment (lib, "comctl32") 
#pragma comment (lib, "msimg32") 
#pragma comment (lib, "shlwapi") 

//Don't remove the Object map macros. They make the ATL wizard work
BEGIN_OBJECT_MAP(ObjectMap)
END_OBJECT_MAP()

namespace
{	
	struct _coinit
	{
		_coinit()
		{
			::CoInitialize(NULL);
		}
		~_coinit()
		{
			::CoUninitialize();
		}
	} __coinit;
}
CComModule _Module;

void RunApp();

int APIENTRY _tWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPTSTR lpCmdLine, int nCmdShow) 
{
	_Module.Init(ObjectMap, hInstance);

	RunApp();

	_Module.Term();
	return 0;
}

void RunApp()
{
	srand(time(0));

	INITCOMMONCONTROLSEX icc = {sizeof INITCOMMONCONTROLSEX, ICC_UPDOWN_CLASS|ICC_BAR_CLASSES};
	InitCommonControlsEx(&icc);


	_Main main;
	main.Create(0, 0);
	main.ShowWindow(SW_SHOW);
	main.UpdateWindow();

	MSG msg;
	
	while (GetMessage(&msg,  0, 0, 0))
	{
		if (!main.DispatchDialogMessage(&msg)) 
		{
			DispatchMessage(&msg);
			TranslateMessage(&msg);
		}
	}
}

⌨️ 快捷键说明

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