Share via


HwndWrapper.RegisterClass(String) Method

Definition

Important

This API is not CLS-compliant.

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

protected:
 System::UInt16 RegisterClass(System::String ^ className);
protected:
 unsigned short RegisterClass(Platform::String ^ className);
unsigned short RegisterClass(std::wstring const & className);
[System.CLSCompliant(false)]
protected ushort RegisterClass (string className);
protected ushort RegisterClass (string className);
[<System.CLSCompliant(false)>]
member this.RegisterClass : string -> uint16
member this.RegisterClass : string -> uint16
Protected Function RegisterClass (className As String) As UShort

Parameters

className
String

The class name for the window.

Returns

The class atom of the registered window class.

Attributes

Applies to