gestureapp.cpp
来自「基于点轨迹的手势识别.鼠标右键点击开始记录鼠标轨迹,基于记录的轨迹,利用神经网络」· C++ 代码 · 共 63 行
CPP
63 行
#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 + =
减小字号Ctrl + -
显示快捷键?