public static ClassStyles SetClassLong(this IntPtr hwnd, ClassLongFlags flags, ClassStyles dwLong) { if (IntPtr.Size == 8) { return (ClassStyles)SetClassLong64(hwnd, flags, (IntPtr)dwLong); } return (ClassStyles)SetClassLong32(hwnd, flags, (IntPtr)dwLong); }
public ClassInfoEx( ClassStyles style, IntPtr windowProcedure, IntPtr instance, IntPtr icon, IntPtr cursor, IntPtr brushBackground, string menuName, string className, IntPtr iconSmall) { this.size = (uint)Marshal.SizeOf(typeof(ClassInfoEx)); this.style = style; this.windowProcedure = windowProcedure; this.classExtra = 0; this.windowExtra = 0; this.instance = instance; this.icon = icon; this.cursor = cursor; this.brushBackground = brushBackground; this.menuName = menuName; this.className = className; this.iconSmall = iconSmall; }
public static ClassStyles SetClassLong(this IntPtr hwnd, ClassLongFlags flags, ClassStyles dwLong) { if (IntPtr.Size == 8) { return((ClassStyles)SetClassLong64(hwnd, flags, (IntPtr)dwLong)); } return((ClassStyles)SetClassLong32(hwnd, flags, (IntPtr)dwLong)); }