NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

NativeWindow.CreateHandle

Creates a window handle for this window.

[Visual Basic]
Overridable Public Sub CreateHandle( _
   ByVal cp As CreateParams _
)
[C#]
public virtual void CreateHandle(
   CreateParams cp
);
[C++]
public: virtual void CreateHandle(
   CreateParams* cp
);
[JScript]
public function CreateHandle(
   cp : CreateParams
);

Parameters

cp
A CreateParams that specifies the creation parameters for this window.

Remarks

The cp parameter specifies the values that are passed to the Microsoft.Win32.Interop.Windows.CreateWindowEx API method to create a window and its handle.

When the className field is not a null reference (in Visual Basic Nothing), the newly created window handle will inherit from the specified class. For example, if className is set to "BUTTON", the newly created window handle will inherit from Button. The param field of the className object must be either a null reference (Nothing) or reference an instance of a class that was declared using the @dll.struct directive.

See Also

NativeWindow Class | NativeWindow Members | System.WinForms Namespace | CreateParams | NativeWindow | Handle | AssignHandle | DestroyHandle | ReleaseHandle | WndProc