Win7TouchSamples

所属分类:GDI/图象编程
开发工具:Visual C++
文件大小:130KB
下载次数:35
上传日期:2011-11-16 13:39:33
上 传 者sam_hust
说明:  颜色渐变程序,基于VC++实现的图表功能等
(color change slowly)

文件列表:
Touch\MTGestures (0, 2010-07-26)
Touch\MTGestures\cpp (0, 2010-07-26)
Touch\MTGestures\cpp\DrawingObject.cpp (6623, 2010-04-19)
Touch\MTGestures\cpp\DrawingObject.h (2202, 2010-04-19)
Touch\MTGestures\cpp\GestureEngine.cpp (5609, 2010-04-19)
Touch\MTGestures\cpp\GestureEngine.h (1940, 2010-04-19)
Touch\MTGestures\cpp\MTGestures.cpp (9650, 2010-04-19)
Touch\MTGestures\cpp\MTGestures.rc (1851, 2010-04-19)
Touch\MTGestures\cpp\MTGestures.sln (1239, 2010-04-19)
Touch\MTGestures\cpp\MTGestures.vcproj (7974, 2010-04-19)
Touch\MTGestures\cpp\MyGestureEngine.cpp (1954, 2010-04-19)
Touch\MTGestures\cpp\MyGestureEngine.h (1169, 2010-04-19)
Touch\MTGestures\cpp\Resource.h (915, 2010-04-19)
Touch\MTGestures\CS (0, 2010-07-26)
Touch\MTGestures\CS\AssemblyInfo.cs (1895, 2010-04-19)
Touch\MTGestures\CS\DrawingObject.cs (8843, 2010-04-19)
Touch\MTGestures\CS\MTGestures.cs (17586, 2010-04-19)
Touch\MTGestures\CS\MTGestures.csproj (3508, 2010-04-19)
Touch\MTGestures\CS\MTGestures.Designer.cs (1997, 2010-04-19)
Touch\MTGestures\CS\MTGestures.resx (5814, 2010-04-19)
Touch\MTGestures\CS\MTGestures.sln (909, 2010-04-19)
Touch\MTGestures\CS\Program.cs (2359, 2010-04-19)
Touch\MTGestures\CS\Resources.Designer.cs (3126, 2010-04-19)
Touch\MTGestures\CS\Resources.resx (5612, 2010-04-19)
Touch\MTGestures\CS\Settings.Designer.cs (1381, 2010-04-19)
Touch\MTGestures\CS\Settings.settings (249, 2010-04-19)
Touch\MTManipulation (0, 2010-07-26)
Touch\MTManipulation\cpp (0, 2010-07-26)
Touch\MTManipulation\cpp\CDrawingObject.cpp (4699, 2010-04-19)
Touch\MTManipulation\cpp\CDrawingObject.h (1608, 2010-04-19)
Touch\MTManipulation\cpp\CManipulationEventSink.cpp (9278, 2010-04-19)
Touch\MTManipulation\cpp\CManipulationEventSink.h (2422, 2010-04-19)
Touch\MTManipulation\cpp\MTManipulation.cpp (13327, 2010-04-19)
Touch\MTManipulation\cpp\MTManipulation.rc (1863, 2010-04-19)
Touch\MTManipulation\cpp\MTManipulation.sln (1242, 2010-04-19)
Touch\MTManipulation\cpp\MTManipulation.vcproj (7870, 2010-04-19)
Touch\MTManipulation\cpp\Resource.h (919, 2010-04-19)
... ...

Multi-touch Gestures Application (C#) ===================================== Demonstrates how to configure and handle multi-touch gesture messages in a managed application. This application will initially draw rectangle in the middle of client area. By using gestures a user can manipulate the rectangle. The available commands are: - rectangle stretch By putting two fingers on the screen and modifying distance between them by moving fingers in the opposite directions or towards each other the user can zoom in/out this rectangle. - panning By touching the screen with two fingers and moving them in the same direction the user can move the rectangle. - rotate By putting one finger in the center of the rotation and then rotating the other finger around it the user can rotate the rectangle - two finger tap By tapping the screen with two fingers the user can toggle drawing of the diagonals - finger press and tap This gesture involves movements of two fingers. It consists first of putting one finger down. Then putting the second finger down and then lifting it up. Finally the first finger is lifted up. This gesture will change the color of the rectangle. Demonstrates: SetGestureConfig, GetGestureInfo, CloseGestureInfoHandle, WM_GESTURENOTIFY, WM_GESTURE. Sample Language Implementations =============================== C++ C# Files ===== MTGestures.sln MTGestures.csproj MTGestures.cs MTGestures.Designer.cs MTGestures.resx DrawingObject.cs Program.cs AssemblyInfo.cs Resources.Designer.cs Resources.resx Settings.Designer.cs Settings.settings readme.txt To build the sample using the command prompt ============================================ 1. Copy sample directory outside Program Files folder. 2. Open the Command Prompt window and navigate to the copied sample directory. 3. Type msbuild MTGestures.sln. The application will be built in the default bin\Debug or bin\Release directory. To build the sample using Visual Studio ======================================= 1. Copy sample directory outside Program Files folder. 2. Open Windows Explorer and navigate to the copied sample directory. 3. Double-click the icon for the MTGest.sln file to open the file in Visual Studio. 4. In the Build menu, select Build Solution. The application will be built in the default bin\Debug or bin\Release directory. To run the sample ================= 1. Navigate to the directory that contains the new executable, using the command prompt or Windows Explorer. 2. Type MTGestures.exe at the command line, or double-click the icon for MTGestures.exe to launch it from Windows Explorer.

近期下载者

相关文件


收藏者