Ejemplo n.º 1
0
        protected ushort RegisterClass(string className)
        {
            WNDCLASS wNDCLASS = default(WNDCLASS);

            wNDCLASS.cbClsExtra    = 0;
            wNDCLASS.cbWndExtra    = 0;
            wNDCLASS.hbrBackground = IntPtr.Zero;
            wNDCLASS.hCursor       = IntPtr.Zero;
            wNDCLASS.hIcon         = IntPtr.Zero;
            wNDCLASS.lpfnWndProc   = (this.wndProc = new NativeMethodsUltimate.WndProc(this.WndProc));
            wNDCLASS.lpszClassName = className;
            wNDCLASS.lpszMenuName  = null;
            wNDCLASS.style         = 0u;
            return(NativeMethodsUltimate.RegisterClass(ref wNDCLASS));
        }