Beispiel #1
0
        // Token: 0x060026F3 RID: 9971 RVA: 0x0008C0D4 File Offset: 0x0008A2D4
        public static void smethod_23(HandleRef hWnd, FormWindowState state, Rectangle?rect = null)
        {
            Rectangle       left;
            FormWindowState formWindowState;

            if ((formWindowState = Class410.smethod_22(hWnd, out left)) != state || (rect != null && left != rect.Value))
            {
                Struct28 @struct = default(Struct28);
                @struct.uint_0 = (uint)Marshal.SizeOf(typeof(Struct28));
                Class265.GetWindowPlacement(hWnd, ref @struct);
                if (rect != null && left != rect.Value)
                {
                    @struct.struct24_0 = new Struct24(rect.Value);
                }
                if (formWindowState != state)
                {
                    if (state.HasFlag(FormWindowState.Maximized))
                    {
                        if (state.HasFlag(FormWindowState.Minimized))
                        {
                            @struct.enum62_0 |= Enum62.flag_1;
                            @struct.enum117_0 = Enum117.const_8;
                        }
                        else
                        {
                            @struct.enum117_0 = Enum117.const_2;
                            @struct.enum62_0 &= ~Enum62.flag_1;
                        }
                    }
                    else if (state.HasFlag(FormWindowState.Minimized))
                    {
                        @struct.enum117_0 = Enum117.const_8;
                        @struct.enum62_0 &= ~Enum62.flag_1;
                    }
                    else
                    {
                        @struct.enum117_0 = Enum117.const_4;
                        @struct.enum62_0 &= ~Enum62.flag_1;
                    }
                }
                Class265.SetWindowPlacement(hWnd, ref @struct);
            }
        }
Beispiel #2
0
        // Token: 0x060026F1 RID: 9969 RVA: 0x0008C040 File Offset: 0x0008A240
        public static FormWindowState smethod_21(HandleRef hWnd)
        {
            Rectangle rectangle;

            return(Class410.smethod_22(hWnd, out rectangle));
        }