﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>The VNC Manager - SmartCode Solutions Forum / General Discussion / SmartCode ViewerX VNC Viewer ActiveX  / View portion of server desktop? / Latest Posts</title><generator>InstantForum.NET v4.1.4</generator><description>The VNC Manager - SmartCode Solutions Forum</description><link>http://vncmanager.com/forum/</link><webMaster>forums@s-code.com</webMaster><lastBuildDate>Fri, 19 Mar 2010 09:28:04 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: View portion of server desktop?</title><link>http://vncmanager.com/forum/Topic1147-6-1.aspx</link><description>Thanks!  I understand getting the bitmap via ViewerX.  However, I'm a bit uncertain as to how to draw only a portion of that bitmap back via ViewerX.  How does ViewerX draw the entire desktop bitmap in the first place, and re-draw it at a particular refresh rate to show "real time" changes on the remote desktop?  Is it possible to perhaps access that, then change those values to reproduce only a portion of that entire bitmap of the desktop? &lt;br&gt;&lt;br&gt;Thanks again,&lt;br&gt;Janine</description><pubDate>Tue, 10 Oct 2006 15:48:22 GMT</pubDate><dc:creator>Janine</dc:creator></item><item><title>RE: View portion of server desktop?</title><link>http://vncmanager.com/forum/Topic1147-6-1.aspx</link><description>There is no way in the VNC world for a VNC client to specify what part of remote screen it wants to observe. The only way for you from the client side would be is to obtain screen bitmap handle from ViewerX via ScreenBitmap property and after that you can draw only part of that bitmap.&lt;/P&gt;&lt;P&gt;A .Net C# code to get remote screen bitmap via Viewer’s API would look like this:&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;Bitmap bmp = Bitmap.FromHbitmap(new IntPtr(viewerX.ScreenBitmap));&lt;/FONT&gt;</description><pubDate>Tue, 03 Oct 2006 02:27:36 GMT</pubDate><dc:creator>Support (s-code)</dc:creator></item><item><title>View portion of server desktop?</title><link>http://vncmanager.com/forum/Topic1147-6-1.aspx</link><description>Hi - &lt;br&gt;&lt;br&gt;Is there a way to be able to view only a portion of the server's desktop?  Support at SmartCode had mentioned in an email to me recently to retrieve a handle of ViewerX screen bitmap via ScreenBitmap property, then to draw a portion of this bitmap on the form where the control object is...?  I need just a bit more clarification on this, or any guidance to another way of being able to view a portion of the server's desktop.  Is there a way to, perhaps, specifiy a rectangle on the server's desktop via ViewerX, and just view this?  I'm thinking along the lines of even setting the control object not to enable screen stretching, and disabling the scroll bars, limiting the user to explore the rest of the server desktop through ViewerX.  Is there a way to do this?&lt;br&gt;&lt;br&gt;Many thanks in advance :)&lt;br&gt;&lt;br&gt;- Janine</description><pubDate>Mon, 25 Sep 2006 16:38:17 GMT</pubDate><dc:creator>Janine</dc:creator></item></channel></rss>