예제 #1
0
 public static extern ushort RegisterClass(ref WNDCLASS lpWndClass);
예제 #2
0
 protected ushort RegisterClass(string className)
 {
     WNDCLASS lpWndClass = new WNDCLASS
     {
         cbClsExtra = 0,
         cbWndExtra = 0,
         hbrBackground = IntPtr.Zero,
         hCursor = IntPtr.Zero,
         hIcon = IntPtr.Zero,
         lpfnWndProc = this.wndProc = new WndProc(this.WndProc),
         lpszClassName = className,
         lpszMenuName = null,
         style = 0
     };
     return NativeMethodsPack.NativeMethods.RegisterClass(ref lpWndClass);
 }