예제 #1
0
 protected virtual void OnDrawMenuItem(EZSDrawItemEventArgs e)
 {
     e.DrawBackground();
     using (var brush = (e.ForeColor.IsSystemColor) ? SystemBrushes.FromSystemColor(e.ForeColor) : new SolidBrush(e.ForeColor))
     {
         e.Graphics.DrawString(e.MenuItem.Caption, e.Font, brush, new PointF((float)e.Bounds.Left, (float)e.Bounds.Top));
     }
 }
예제 #2
0
        private int xa7869b3752ffd1ad(IntPtr x716e0bc3eafdded2, IntPtr x130fbcecf32fe781)
        {
            x3ff95812464be8ed xffbeed = (x3ff95812464be8ed)Marshal.PtrToStructure(x130fbcecf32fe781, typeof(x3ff95812464be8ed));

            using (Graphics graphics = Graphics.FromHdc(xffbeed.xea0205f8180e5e40))
            {
                ShellMenuItem menuitem = xcbf78b15dd820156.x1dbcf1591cc2cceb.x625a8691de7c9283(xffbeed.x8adb1f45d0d1fc14);
                if (menuitem != null)
                {
                    menuitem = menuitem.SubMenu.GetItemFromID(xffbeed.xdf116082e33a0b32);
                }
                if (menuitem == null)
                {
                    menuitem = xcbf78b15dd820156.x1dbcf1591cc2cceb.xc28600085ccd9908(xffbeed.xdf116082e33a0b32);
                }
                EZSDrawItemEventArgs e = new EZSDrawItemEventArgs(menuitem, graphics, SystemInformation.MenuFont, Rectangle.FromLTRB(xffbeed.x8d41594059465577.xa447fc54e41dfe06, xffbeed.x8d41594059465577.xc941868c59399d3e, xffbeed.x8d41594059465577.xfc2074a859a5db8c, xffbeed.x8d41594059465577.xaf9a0436a70689de), (DrawItemState)xffbeed.x970e523b845fd5c8);
                OnDrawMenuItem(e);
            }
            return(0);
        }