Exemple #1
0
        // Token: 0x06000189 RID: 393 RVA: 0x00015B88 File Offset: 0x00013D88
        protected override void WndProc(ref Message m)
        {
            int  msg  = m.Msg;
            bool flag = m.Msg == 132 && (int)m.Result == 1;

            if (flag)
            {
                m.Result = (IntPtr)2;
            }
            bool flag2 = msg == 133 && this.m_aeroEnabled;

            if (flag2)
            {
                int num = 2;
                FmScreenPaste.DwmSetWindowAttribute(base.Handle, 2, ref num, 4);
                FmScreenPaste.MARGINS margins = new FmScreenPaste.MARGINS
                {
                    bottomHeight = 1,
                    leftWidth    = 1,
                    rightWidth   = 1,
                    topHeight    = 1
                };
                FmScreenPaste.DwmExtendFrameIntoClientArea(base.Handle, ref margins);
            }
            base.WndProc(ref m);
        }
Exemple #2
0
 public static extern int DwmExtendFrameIntoClientArea(IntPtr hWnd, ref FmScreenPaste.MARGINS pMarInset);