HwndWrapper.RegisterClass(String) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重要
此 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
窗口的类名称。
返回
返回已注册的窗口类的类 atom。
- 属性