Click here to Skip to main content
15,886,362 members
Articles / Programming Languages / Visual Basic

Using BitBlt to Copy and Paste Graphics

Rate me:
Please Sign up or sign in to vote.
4.22/5 (20 votes)
5 May 2010CPOL4 min read 228.1K   5.1K   49  
This article will demonstrate how to use BitBlt. and provide some technical pointers
<html dir="LTR"><head><META http-equiv="Content-Type" content="text/html; charset=utf-8"><meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5"><title>MdiClientController Members</title><xml></xml><link rel="stylesheet" type="text/css" href="MSDN.css"></head><body id="bodyID" class="dtBODY"><div id="nsbanner"><div id="bannerrow1"><table class="bannerparthead" cellspacing="0"><tr id="hdr"><td class="runninghead">An NDoc Documented Class Library</td><td class="product"></td></tr></table></div><div id="TitleRow"><h1 class="dtH1">MdiClientController Members
					</h1></div></div><div id="nstext"><p><a href="Slusser.Components.MdiClientController.html">MdiClientController overview</a></p><h4 class="dtH4">Public Instance Constructors</h4><div class="tablediv"><table class="dtTABLE" cellspacing="0"><tr VALIGN="top"><td width="50%"><img src="pubmethod.gif"><a href="Slusser.Components.MdiClientControllerConstructor.html">MdiClientController</a></td><td width="50%">Overloaded. Initializes a new instance of the MdiClientController class.</td></tr></table></div><h4 class="dtH4">Public Instance Properties</h4><div class="tablediv"><table class="dtTABLE" cellspacing="0">
<tr VALIGN="top"><td width="50%"><img src="pubproperty.gif"><a href="Slusser.Components.MdiClientController.AutoScroll.html">AutoScroll</a></td><td width="50%">
            Gets or sets a value indicating whether the container will allow the user to
            scroll to any controls placed outside of its visible boundaries.
            </td></tr>
<tr VALIGN="top"><td width="50%"><img src="pubproperty.gif"><a href="Slusser.Components.MdiClientController.BackColor.html">BackColor</a></td><td width="50%">
            Gets or sets the background color for the control.
            </td></tr>
<tr VALIGN="top"><td width="50%"><img src="pubproperty.gif"><a href="Slusser.Components.MdiClientController.BorderStyle.html">BorderStyle</a></td><td width="50%">
            Indicates the border style for the control.
            </td></tr>
<tr VALIGN="top"><td width="50%"><img src="pubproperty.gif"><a href="Slusser.Components.MdiClientController.Handle.html">Handle</a></td><td width="50%">
            Gets the handle for this window.
            </td></tr>
<tr VALIGN="top"><td width="50%"><img src="pubproperty.gif"><a href="Slusser.Components.MdiClientController.Image.html">Image</a></td><td width="50%">
            Gets or sets the image that the
            <a href="Slusser.Components.MdiClientController.html">MdiClientController</a> displays.
            </td></tr>
<tr VALIGN="top"><td width="50%"><img src="pubproperty.gif"><a href="Slusser.Components.MdiClientController.ImageAlign.html">ImageAlign</a></td><td width="50%">
            Gets or sets the alignment of the background image.
            </td></tr>
<tr VALIGN="top"><td width="50%"><img src="pubproperty.gif"><a href="Slusser.Components.MdiClientController.MdiClient.html">MdiClient</a></td><td width="50%">
            Gets the <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemWindowsFormsMdiClientClassTopic.htm">MdiClient</a> being controlled.
            </td></tr>
<tr VALIGN="top"><td width="50%"><img src="pubproperty.gif"><a href="Slusser.Components.MdiClientController.ParentForm.html">ParentForm</a></td><td width="50%">
            Gets or sets the form that the <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemWindowsFormsMdiClientClassTopic.htm">MdiClient</a>
            control is assigned to.
            </td></tr>
<tr VALIGN="top"><td width="50%"><img src="pubproperty.gif"><a href="Slusser.Components.MdiClientController.Site.html">Site</a></td><td width="50%">
            Gets or sets the <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemComponentModelISiteClassTopic.htm">ISite</a> of
            the <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemComponentModelComponentClassTopic.htm">Component</a>.
            </td></tr>
<tr VALIGN="top"><td width="50%"><img src="pubproperty.gif"><a href="Slusser.Components.MdiClientController.StretchImage.html">StretchImage</a></td><td width="50%">
            Gets or sets a value indicating whether the
            <a href="Slusser.Components.MdiClientController.Image.html">Image</a> should
            be stretched to fill the entire client area.
            </td></tr></table></div><h4 class="dtH4">Public Instance Methods</h4><div class="tablediv"><table class="dtTABLE" cellspacing="0">
<tr VALIGN="top"><td width="50%"><img src="pubmethod.gif"><a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemWindowsFormsNativeWindowClassAssignHandleTopic.htm">AssignHandle</a> (inherited from <b>NativeWindow</b>)</td><td width="50%"> Assigns a handle to this
      window.
      </td></tr>
<tr VALIGN="top"><td width="50%"><img src="pubmethod.gif"><a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemWindowsFormsNativeWindowClassCreateHandleTopic.htm">CreateHandle</a> (inherited from <b>NativeWindow</b>)</td><td width="50%"> Creates a window and its handle with the specified creation
      parameters.
      </td></tr>
<tr VALIGN="top"><td width="50%"><img src="pubmethod.gif"><a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemMarshalByRefObjectClassCreateObjRefTopic.htm">CreateObjRef</a> (inherited from <b>MarshalByRefObject</b>)</td><td width="50%">Creates an object that contains all the relevant
      information required to generate a proxy used to communicate with a remote object.</td></tr>
<tr VALIGN="top"><td width="50%"><img src="pubmethod.gif"><a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemWindowsFormsNativeWindowClassDefWndProcTopic.htm">DefWndProc</a> (inherited from <b>NativeWindow</b>)</td><td width="50%">Invokes the default window procedure associated with
      this window. It is an error to call this method when the <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemWindowsFormsNativeWindowClassHandleTopic.htm">Handle</a>
      property is 0.</td></tr>
<tr VALIGN="top"><td width="50%"><img src="pubmethod.gif"><a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemWindowsFormsNativeWindowClassDestroyHandleTopic.htm">DestroyHandle</a> (inherited from <b>NativeWindow</b>)</td><td width="50%"> Destroys
      the window and its handle.
      </td></tr>
<tr VALIGN="top"><td width="50%"><img src="pubmethod.gif"><a href="Slusser.Components.MdiClientController.Dispose_overload_1.html">Dispose</a></td><td width="50%">Overloaded. 
            Releases all resources used by the
            <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemComponentModelComponentClassTopic.htm">Component</a>.
            </td></tr>
<tr VALIGN="top"><td width="50%"><img src="pubmethod.gif"><a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemObjectClassEqualsTopic.htm">Equals</a> (inherited from <b>Object</b>)</td><td width="50%">Determines whether the specified <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemObjectClassTopic.htm">Object</a> is equal to the current <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemObjectClassTopic.htm">Object</a>.</td></tr>
<tr VALIGN="top"><td width="50%"><img src="pubmethod.gif"><a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemObjectClassGetHashCodeTopic.htm">GetHashCode</a> (inherited from <b>Object</b>)</td><td width="50%">Serves as a hash function for a particular type, suitable
      for use in hashing algorithms and data structures like a hash table.</td></tr>
<tr VALIGN="top"><td width="50%"><img src="pubmethod.gif"><a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemMarshalByRefObjectClassGetLifetimeServiceTopic.htm">GetLifetimeService</a> (inherited from <b>MarshalByRefObject</b>)</td><td width="50%">Retrieves the current lifetime service object that controls the
      lifetime policy for this instance.</td></tr>
<tr VALIGN="top"><td width="50%"><img src="pubmethod.gif"><a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemObjectClassGetTypeTopic.htm">GetType</a> (inherited from <b>Object</b>)</td><td width="50%">Gets the <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemTypeClassTopic.htm">Type</a> of the current instance.</td></tr>
<tr VALIGN="top"><td width="50%"><img src="pubmethod.gif"><a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemMarshalByRefObjectClassInitializeLifetimeServiceTopic.htm">InitializeLifetimeService</a> (inherited from <b>MarshalByRefObject</b>)</td><td width="50%"> Obtains a lifetime service object to control the lifetime policy for this instance.</td></tr>
<tr VALIGN="top"><td width="50%"><img src="pubmethod.gif"><a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemWindowsFormsNativeWindowClassReleaseHandleTopic.htm">ReleaseHandle</a> (inherited from <b>NativeWindow</b>)</td><td width="50%"> Releases the handle associated with this window.
      </td></tr>
<tr VALIGN="top"><td width="50%"><img src="pubmethod.gif"><a href="Slusser.Components.MdiClientController.RenewMdiClient.html">RenewMdiClient</a></td><td width="50%">
            Reestablishes a connection to the <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemWindowsFormsMdiClientClassTopic.htm">MdiClient</a>
            control if the <a href="Slusser.Components.MdiClientController.ParentForm.html">ParentForm</a>
            hasn't changed but its <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemWindowsFormsFormClassIsMdiContainerTopic.htm">IsMdiContainer</a>
            property has.
            </td></tr>
<tr VALIGN="top"><td width="50%"><img src="pubmethod.gif"><a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemObjectClassToStringTopic.htm">ToString</a> (inherited from <b>Object</b>)</td><td width="50%">Returns a <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemStringClassTopic.htm">String</a> that represents the current <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemObjectClassTopic.htm">Object</a>.</td></tr></table></div><h4 class="dtH4">Public Instance Events</h4><div class="tablediv"><table class="dtTABLE" cellspacing="0">
<tr VALIGN="top"><td width="50%"><img src="pubevent.gif"><a href="Slusser.Components.MdiClientController.Disposed.html">Disposed</a></td><td width="50%">
            Occurs when the control is disposed.
            </td></tr>
<tr VALIGN="top"><td width="50%"><img src="pubevent.gif"><a href="Slusser.Components.MdiClientController.HandleAssigned.html">HandleAssigned</a></td><td width="50%">
            Occurs when the <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemWindowsFormsNativeWindowClassTopic.htm">NativeWindow</a> handle
            is assigned.
            </td></tr>
<tr VALIGN="top"><td width="50%"><img src="pubevent.gif"><a href="Slusser.Components.MdiClientController.Paint.html">Paint</a></td><td width="50%">
            Occurs when the control is redrawn.
            </td></tr></table></div><h4 class="dtH4">Protected Instance Methods</h4><div class="tablediv"><table class="dtTABLE" cellspacing="0">
<tr VALIGN="top"><td width="50%"><img src="protmethod.gif"><a href="Slusser.Components.MdiClientController.Dispose_overload_2.html">Dispose</a></td><td width="50%">Overloaded. Releases the unmanaged resources used by the
            <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemComponentModelComponentClassTopic.htm">Component</a> and optionally releases the
            managed resources.</td></tr>
<tr VALIGN="top"><td width="50%"><img src="protmethod.gif"><a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemWindowsFormsNativeWindowClassFinalizeTopic.htm">Finalize</a> (inherited from <b>NativeWindow</b>)</td><td width="50%">Releases the resources associated with this window.</td></tr>
<tr VALIGN="top"><td width="50%"><img src="protmethod.gif"><a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemObjectClassMemberwiseCloneTopic.htm">MemberwiseClone</a> (inherited from <b>Object</b>)</td><td width="50%">Creates a shallow copy of the current <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemObjectClassTopic.htm">Object</a>.</td></tr>
<tr VALIGN="top"><td width="50%"><img src="protmethod.gif"><a href="Slusser.Components.MdiClientController.OnHandleAssigned.html">OnHandleAssigned</a></td><td width="50%">
            Raises the <a href="Slusser.Components.MdiClientController.HandleAssigned.html">HandleAssigned</a> event.
            </td></tr>
<tr VALIGN="top"><td width="50%"><img src="protmethod.gif"><a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemWindowsFormsNativeWindowClassOnHandleChangeTopic.htm">OnHandleChange</a> (inherited from <b>NativeWindow</b>)</td><td width="50%"> Specifies a notification method that is called when the handle for a
      window is changed.
      </td></tr>
<tr VALIGN="top"><td width="50%"><img src="protmethod.gif"><a href="Slusser.Components.MdiClientController.OnPaint.html">OnPaint</a></td><td width="50%">
            Raises the <a href="Slusser.Components.MdiClientController.Paint.html">Paint</a> event.
            </td></tr>
<tr VALIGN="top"><td width="50%"><img src="protmethod.gif"><a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemWindowsFormsNativeWindowClassOnThreadExceptionTopic.htm">OnThreadException</a> (inherited from <b>NativeWindow</b>)</td><td width="50%"> When overridden in a derived class,
      manages an unhandled thread
      exception.
      </td></tr>
<tr VALIGN="top"><td width="50%"><img src="protmethod.gif"><a href="Slusser.Components.MdiClientController.WndProc.html">WndProc</a></td><td width="50%">
            Invokes the default window procedure associated with this window.
            </td></tr></table></div><h4 class="dtH4">See Also</h4><p><a href="Slusser.Components.MdiClientController.html">MdiClientController Class</a> | <a href="Slusser.Components.html">Slusser.Components Namespace</a></p><object type="application/x-oleobject" classid="clsid:1e2a7bd0-dab9-11d0-b93a-00c04fc99f9e" viewastext="true" style="display: none;"><param name="Keyword" value="MdiClientController class"><param name="Keyword" value="Slusser.Components.MdiClientController class"><param name="Keyword" value="MdiClientController class, all members"></object></div></body></html>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Chief Technology Officer ISQ
Israel Israel
Just another coder out there Smile | :)
Currently working on a natural language search index with nanoRep

Comments and Discussions