HwndWrapper.RegisterClass(String) 方法

定义

重要

此 API 不符合 CLS。

注册具有给定名称的窗口类,并将其他选项设置为默认值。

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);
[<System.CLSCompliant(false)>]
member this.RegisterClass : string -> uint16
Protected Function RegisterClass (className As String) As UShort

参数

className
String

窗口的类名称。

返回

UInt16

返回已注册的窗口类的类 atom。

属性

适用于