Getting Started with Windows MultiPoint Mou SDK 1.5
January 10, 2010
Legal Information
This document is provided “as-is”. Information and views expresd in this document, including URL and other Internet Web site references, may change without notice. You bear the risk of using it.
Some examples depicted herein are provided for illustration only and are fictitious. No real association or connection is intended or should be inferred.
This document does not provide you with any legal rights to any intellectual property in any Microsoft product. You may copy and u this document for your internal, reference purpos.
© 2009 Microsoft Corporation. All rights rerved.
Microsoft, C#, C++, Expression Blend, MultiPoint, , Visual Basic, Visual Studio, Windows, and Windows Vista are trademarks of the Microsoft group of companies.
All other trademarks are property of their respective owners.
CONTENTS
Introduction (3)
Getting Started with the SDK (3)
Software Requirements (3)
Installing the MultiPoint Mou SDK (4)
Referencing the Required Libraries (4)
Initializing the MultiPoint Mou SDK (4)
Running Your Application (5)
德国设计Handling Mou Addition and Removal (6)
Building a MultiPoint Mou-Enabled UI (7)
Adding a MultiPoint Control (7)
Handling MultiPoint Mou Clicks (8)
Determining Which Mou Was Clicked (9)
Customizing MultiPoint Mou (10)
Assigning Pointer Colors (10)
Assigning Custom Images (10)
Freezing the Mou Devices (12)
Advanced Topics (12)
Excluding Pointers from a Region on the Screen (12)四川国税官网
Assigning Specific Mou Functions (AKA Teacher Mou) (12)
Appendix A: Usage Scenarios (13)
The Map Sample Usage Scenario (13)
The Quiz Sample Usage Scenario (15)
Introduction
The Windows® MultiP oint™ Mou Software Development Kit (SDK) is a development framework that allows developers to build applications that enable up to 25 individual mou devices to work simultaneously on one computer. As a developer, you can u the MultiPoint Mou SDK to create educational applications for schools with limited technological infrastructure, thus increasing the amount of time any one student can spend on a computer. Initial pilot programs conducted in India by Microsoft® Rearch show that for certain subjects, collaborative learning technologies like Windows MultiPoint help enhance learning when compared to a 1:1 computing scenario1.
MultiPoint Mou SDK should not be confud with applications that allow multiple people to control multiple mou devices to perform standard operations. In tho cas, the system traditionally cann
ot identify which mou has made which changes, and there is normally no option for controlling the permissions of the various devices. MultiPoint Mou SDK includes a development framework that enables developers to build applications to take advantage of multiple mou devices, including the ability to handle mou clicks from different urs, independently, and to assign different permissions to each mou. For example, the mou that a teacher us in a learning application might need additional permissions to control the activity.
This document will help you get started with the MultiPoint Mou SDK by providing an overview of such items as namespaces, class, uful properties and functions, and by discussing common issues and considerations for building applications by using MultiPoint Mou SDK.
Getting Started with the SDK
This ction outlines the steps required to get started building applications with the MultiPoint Mou SDK. It assumes that the reader is comfortable with building Windows Prentation Foundation (WPF) applications on Microsoft® Framework and will concentrate only on aspects related to implementing MultiPoint Mou functionality. For more information about building applications with WPF, e Appendix A in this document.
Software Requirements航天员刘洋
The recommended programming environment is Microsoft Expression Blend® with Visual Studio 2008 or Visual Studio 2010. Expression Blend is a graphical ur interface (GUI) for designing interfaces. Visual Studio provides a similar functionality, which, although not as rich in features as Expression Blend, should be sufficient to develop applications with the MultiPoint Mou SDK.
The following software is required to run the MultiPoint Mou SDK:
∙ A 32-bit or 64-bit version of Windows® 7 operating system is recommended. The MultiPoint Mou SDK is compatible with Windows Vista® Service Pack 2 (SP2) and Windows® XP SP3.
∙Visual Studio 2008, Visual Studio 2010 Express, or a later version of Visual Studio.
∙If you are developing Windows Prentation Foundation applications, you should u Expression Blend.个体户纳税标准
Note: The MultiPoint Mou SDK will install the appropriate template for your version of Visual Studio.
1 The findings of Microsoft Rearch reports on the effects of collaborative technologies can be found on the MultiPoint Web site at /unlimitedpotential/TransformingEducation/MultiPoint.mspx.
Note: The MultiPoint Mou SDK does not support Windows Forms UI development.
Installing the MultiPoint Mou SDK
After you install the SDK, the Windows MultiPoint Mou SDK folder appears on the Start menu. The folder includes the following items:
∙Samples Solution, which includes:
o Tic-Tac-Toe: a basic sample that illustrates a two-player game
期中考试质量分析
o Map: a map-bad learning sample in which students compete to locate cities as quickly as possible
o Quiz: a quiz learning sample in which students are allocated a region on the screen where they have to answer as many questions as possible in a t amount of time o Control: a MultiPoint Mou-enabled check box
∙SDK documentation: a reference for developing applications by using the SDK
The following additional folders are added to the installation location (by default, C:\Program
Files\Windows Multipoint Mou SDK):
尤金奥尼尔∙Bin: Contains the MultiPoint Mou DLLs and a MSM merge file for u with MSI-bad installers.
∙Docs: Contains the MultiPoint Mou SDK documentation.
∙Licen: Contains licen terms for using the SDK.
∙Samples: Contains all of the source code for the sample applications and the sample MultiPoint Mou control.
Referencing the Required Libraries
To build an application by using the MultiPoint Mou SDK, your project must reference the following libraries, which are located in the Global Asmbly Cache (GAC):
∙Microsoft.Multipoint.Sdk.dll
∙Microsoft.Multipoint.Sdk.Controls.dll
For a summary of the libraries and the class that they contain, including uful methods and properties, e the Overview of the SDK ction below.
Initializing the MultiPoint Mou SDK
Before an application can accept input from multiple mou devices, the MultiPoint Mou SDK must be initialized. To do this, the application must initialize the MultipointSdk object by associating it with a WPF window. This is best done as part of the Window.Loaded event of the primary window of your application, as described in the following procedure.
To initialize the MultiPoint Mou SDK on an application
1. Declare and t up a Window.Loaded event handler. Becau the initialization steps should only be
performed after the window has been loaded, you should include the initialization steps in the
Window.Loaded event handler.
京瓷哲学2. Call the Initialize method on the MultipointSdk object, passing in the current window. Behind the
scenes, MultiPoint Mou DLLs carry out the following steps:
a. Registers the current window to specify to the SDK which window to monitor for MultiPoint Mou
events. Becau the SDK needs the information about the parent window that is responsible for the visuals, you must register the current window before any device visuals are drawn for the
mou devices.
b. Registers mou devices. This registration enumerates through all input devices attached to the
computer, and builds a list of registered mou devices available to the application.
Note: MultiPoint Mou SDK does not recognize “track pads” on a laptop computer as an input device.
Therefore, you should u the USB mou device to develop and test applications created by using
MultiPoint Mou.
c. Draws a mou device visual for each attached mou device and assigns a default pointer to
each.
d. Hides the system pointer. In an application created using MultiPoint Mou SDK, the system
pointer is not ud for any of the attached devices, so it is hidden to avoid confusion.
网页微信登陆The following code example shows the initialization procedure.
Running Your Application
Run the application and a pointer should appear on the screen for each mou device connected to t
he computer. It might be difficult to exit the application becau the mou devices cannot click on standard controls, such as the Clo button in the top-right corner of a screen. It is a good idea to add a keyboard event handler that can be ud to exit the application when a certain key (for example, the ESC key) is presd. Do this by adding a KeyEventHandler declaration in the constructor for the main application window, as follows:
After adding the KeyEventHandler declaration, create an event handler as follows: