HwndWrapper Class

 

Represents a disposable wrapper around an HWND that can construct the WNDCLASS and HWND, run the WndProc and dispose of the WNDCLASS and HWND.

Namespace:   Microsoft.VisualStudio.PlatformUI
Assembly:  Microsoft.VisualStudio.Shell.14.0 (in Microsoft.VisualStudio.Shell.14.0.dll)

System.Object
  Microsoft.VisualStudio.PlatformUI.DisposableObject
    Microsoft.VisualStudio.PlatformUI.HwndWrapper

public abstract class HwndWrapper : DisposableObject

NameDescription
System_CAPS_protmethodHwndWrapper()

Creates a new instance of the class.

NameDescription
System_CAPS_pubpropertyHandle

System_CAPS_pubpropertyIsDisposed

This API supports the product infrastructure and is not intended to be used directly from your code. Returns whether the object has been disposed once, which protects against double disposal.(Inherited from DisposableObject.)

System_CAPS_protpropertyIsWindowSubclassed

System_CAPS_protpropertyWindowClassAtom

Gets or creates the class atom returned from CreateWindowClassCore.

NameDescription
System_CAPS_protmethodCreateWindowClassCore()

Creates the WNDCLASS atom to use for constructing this window’s handle.

System_CAPS_protmethodCreateWindowCore()

Creates the handle for the window.

System_CAPS_protmethodDestroyWindowClassCore()

Destroys the WNDCLASS atom created with CreateWindowClassCore.

System_CAPS_protmethodDestroyWindowCore()

Destroys the window handle created by CreateWindowCore.

System_CAPS_pubmethodDispose()

This API supports the product infrastructure and is not intended to be used directly from your code. Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.(Inherited from DisposableObject.)

System_CAPS_protmethodDispose(Boolean)

This API supports the product infrastructure and is not intended to be used directly from your code. Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. Standard virtual overload for IDisposable pattern.(Inherited from DisposableObject.)

System_CAPS_protmethodDisposeManagedResources()

This API supports the product infrastructure and is not intended to be used directly from your code. Allows derived classes to provide custom dispose handling for managed resources.(Inherited from DisposableObject.)

System_CAPS_protmethodDisposeNativeResources()
System_CAPS_pubmethodEnsureHandle()

Ensures that the handle for this window is created (creating the handle if it doesn't already exist). Note that EnsureHandle faisl to create the window's handle if it's called while in the process of creating the handle. In this case, the Handle is left uncreated for the current call.

System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

This API supports the product infrastructure and is not intended to be used directly from your code. Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from DisposableObject.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_protmethodRegisterClass(String)

Registers a window class with the given name, and with other options set to default values.

System_CAPS_protmethodThrowIfDisposed()

This API supports the product infrastructure and is not intended to be used directly from your code. Throws an ObjectDisposedException if this object has been disposed.(Inherited from DisposableObject.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

System_CAPS_protmethodWndProc(IntPtr, Int32, IntPtr, IntPtr)

Runs the WndProc for this window.

NameDescription
System_CAPS_pubeventDisposing

This API supports the product infrastructure and is not intended to be used directly from your code. Raised when the event is being disposed, that is, while it is still accessible.(Inherited from DisposableObject.)

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: