![]() Chrome chrome = new Chrome() Ĭhrome.Highlight(desktop, true, borderWith) The Chrome class is shown in the example section at the end of this topic. Rectangle desktop = new Rectangle(new Point(x, y), size) Ĭreate a new Windows Form in the dimensions of the desktop rectangle. screens ĭeclare a Rectangle that is the same size and location as the shared screen int x = Showing a bright border around a screen involves defining a rectangle of the same size and location as the screen desktop and then creating a bright-bordered chrome window that is shown as a border around the shared desktop. If the user has selected their desktop to share in a conversation, get all of the active screen objects and show a bright border around each screen. Private static extern bool GetWindowPlacement(IntPtr hWnd, out WINDOWPLACEMENT lpwndpl) Public static extern bool GetWindowRect(IntPtr hWnd, ref RECT lpRect) Private static extern bool SetForegroundWindow(IntPtr hWnd) ![]() Private static extern int ShowWindow(IntPtr hWnd, uint Msg) ![]() The following example declares the Win32 API methods that are called in the sample and supporting structures. ![]() Learn about the ApplicationSharingModality class and how it enables you to share resources in an application. Learn about programmatically sharing a computer monitor, desktop, or running program with another Microsoft Lync 2013 user in a conversation window by using classes in Microsoft Lync 2013 SDK. Learn how to use classes in Microsoft Lync 2013 SDK to select a locally shareable resource such as a desktop, monitor, or running program and share it in a Microsoft Lync 2013 conversation. How to: Start a resource sharing conversation Understanding the following concepts is essential to using resource sharing conversions in an application.ĭescribes how to start a Lync 2013 conversation. Microsoft Lync 2013 SDK must be installed on the development computer. You must have sign-in credentials for Microsoft Lync Server 2013. Microsoft Lync 2013 must be installed and running on the development computer. The prerequisites for showing a UI hint in a resource sharing conversation are as follows: Figure 2 shows a shared resource with a bright border as a clear UI hint that the spreadsheet is being shared in the conversation. Instead, use the Win32 API to make four calls into unmanaged code. The Lync 2013 API does not have methods to create a bright border. For example, you can add a bright colored border around a shared window. An effective UI hint is one that clearly shows in the shared resource itself. The user may select a resource but not share it. Don’t rely on a technique like this because selecting a resource doesn’t imply sharing it. Figure 1 shows a sample application that leaves the chosen shared application selected in a list. Show a UI hint: Once the sharing confirmation is closed, you should show a very noticeable UI hint so the user is reminded that they are sharing a resource. After a user has confirmed their choice, application logic uses Lync 2013 API method calls to share the resource in the conversation. Figure 1 shows a message box that shows the SharingResource.Name property for the application that is selected by a user. The Lync 2013 API lets you show a user the window title of a shareable application.Ĭonfirm the user’s choice: Your application UI should let a user confirm that the application they have selected to share is the one they intended to share. Inadvertently sharing an application that shows inappropriate content for a conversation can have privacy or security related consequences. Show the user what is being shared: A critical part of the application sharing experience is having confidence that you are sharing the application which you intend to share. Handling move and resize events in the shared applicationĭisplaying a highlighted border around a process window or desktop Showing a bright border around a shared application window Showing a bright border around a shared screen Learn about adding a UI hint such as a bright border around a process or desktop shared out by the Microsoft Lync 2013 APIĭeclare class fields to support bright window border
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |