<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
		<id>http://nfex.ru/index.php?action=history&amp;feed=atom&amp;title=Csharp%2FC_Sharp_by_API%2FSystem.Windows.Forms%2FMeasureItemEventArgs</id>
		<title>Csharp/C Sharp by API/System.Windows.Forms/MeasureItemEventArgs - История изменений</title>
		<link rel="self" type="application/atom+xml" href="http://nfex.ru/index.php?action=history&amp;feed=atom&amp;title=Csharp%2FC_Sharp_by_API%2FSystem.Windows.Forms%2FMeasureItemEventArgs"/>
		<link rel="alternate" type="text/html" href="http://nfex.ru/index.php?title=Csharp/C_Sharp_by_API/System.Windows.Forms/MeasureItemEventArgs&amp;action=history"/>
		<updated>2026-04-30T13:53:00Z</updated>
		<subtitle>История изменений этой страницы в вики</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>http://nfex.ru/index.php?title=Csharp/C_Sharp_by_API/System.Windows.Forms/MeasureItemEventArgs&amp;diff=4106&amp;oldid=prev</id>
		<title> в 15:31, 26 мая 2010</title>
		<link rel="alternate" type="text/html" href="http://nfex.ru/index.php?title=Csharp/C_Sharp_by_API/System.Windows.Forms/MeasureItemEventArgs&amp;diff=4106&amp;oldid=prev"/>
				<updated>2010-05-26T15:31:35Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Предыдущая&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Версия 15:31, 26 мая 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; style=&quot;text-align: center;&quot; lang=&quot;ru&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(нет различий)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
			</entry>

	<entry>
		<id>http://nfex.ru/index.php?title=Csharp/C_Sharp_by_API/System.Windows.Forms/MeasureItemEventArgs&amp;diff=4107&amp;oldid=prev</id>
		<title>Admin: 1 версия</title>
		<link rel="alternate" type="text/html" href="http://nfex.ru/index.php?title=Csharp/C_Sharp_by_API/System.Windows.Forms/MeasureItemEventArgs&amp;diff=4107&amp;oldid=prev"/>
				<updated>2010-05-26T12:09:16Z</updated>
		
		<summary type="html">&lt;p&gt;1 версия&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==MeasureItemEventArgs.ItemWidth==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt; &lt;br /&gt;
using System;&lt;br /&gt;
using System.Drawing;&lt;br /&gt;
using System.Drawing.Drawing2D;&lt;br /&gt;
using System.Windows.Forms;&lt;br /&gt;
   &lt;br /&gt;
class HatchBrushMenu: Form&lt;br /&gt;
{&lt;br /&gt;
     HatchStyleMenuItem hsmiChecked;&lt;br /&gt;
     const int iMin = 0, iMax = 52;&lt;br /&gt;
     public static void Main()&lt;br /&gt;
     {&lt;br /&gt;
          Application.Run(new HatchBrushMenu());&lt;br /&gt;
     }&lt;br /&gt;
     public HatchBrushMenu()&lt;br /&gt;
     {&lt;br /&gt;
          ResizeRedraw = true;&lt;br /&gt;
   &lt;br /&gt;
          Menu = new MainMenu();&lt;br /&gt;
          Menu.MenuItems.Add(&amp;quot;&amp;amp;Hatch-Style&amp;quot;);&lt;br /&gt;
   &lt;br /&gt;
          for (HatchStyle hs = (HatchStyle)iMin; hs &amp;lt;= (HatchStyle)iMax;hs++)&lt;br /&gt;
          {&lt;br /&gt;
               HatchStyleMenuItem hsmi = new HatchStyleMenuItem();&lt;br /&gt;
   &lt;br /&gt;
               hsmi.HatchStyle = hs;&lt;br /&gt;
               hsmi.Click += new EventHandler(MenuHatchStyleOnClick);&lt;br /&gt;
   &lt;br /&gt;
               if ((int)hs % 8 == 0)&lt;br /&gt;
                    hsmi.BarBreak = true;&lt;br /&gt;
   &lt;br /&gt;
               Menu.MenuItems[0].MenuItems.Add(hsmi);&lt;br /&gt;
          }&lt;br /&gt;
          hsmiChecked = (HatchStyleMenuItem) Menu.MenuItems[0].MenuItems[0];&lt;br /&gt;
          hsmiChecked.Checked = true;&lt;br /&gt;
     }&lt;br /&gt;
     void MenuHatchStyleOnClick(object obj, EventArgs ea)&lt;br /&gt;
     {&lt;br /&gt;
          hsmiChecked.Checked = false;&lt;br /&gt;
          hsmiChecked = (HatchStyleMenuItem) obj;&lt;br /&gt;
          hsmiChecked.Checked = true;&lt;br /&gt;
   &lt;br /&gt;
          Invalidate();&lt;br /&gt;
     }&lt;br /&gt;
     protected override void OnPaint(PaintEventArgs pea)&lt;br /&gt;
     {&lt;br /&gt;
          Graphics grfx = pea.Graphics;&lt;br /&gt;
   &lt;br /&gt;
          HatchBrush hbrush = new HatchBrush(hsmiChecked.HatchStyle,&lt;br /&gt;
                                             Color.White, Color.Black);&lt;br /&gt;
   &lt;br /&gt;
          grfx.FillEllipse(hbrush, ClientRectangle);&lt;br /&gt;
     }&lt;br /&gt;
}&lt;br /&gt;
class HatchStyleMenuItem: MenuItem&lt;br /&gt;
{&lt;br /&gt;
     const    int cxImage = 32, cyImage = 32, iMargin = 2;&lt;br /&gt;
     readonly int cxCheck, cyCheck; &lt;br /&gt;
   &lt;br /&gt;
     public HatchStyle HatchStyle;&lt;br /&gt;
   &lt;br /&gt;
     public HatchStyleMenuItem()&lt;br /&gt;
     {&lt;br /&gt;
          OwnerDraw = true;&lt;br /&gt;
   &lt;br /&gt;
          cxCheck = SystemInformation.MenuCheckSize.Width;&lt;br /&gt;
          cyCheck = SystemInformation.MenuCheckSize.Height;&lt;br /&gt;
     }&lt;br /&gt;
     protected override void OnMeasureItem(MeasureItemEventArgs miea)&lt;br /&gt;
     {&lt;br /&gt;
          miea.ItemWidth  = 2 * cxImage + 3 * iMargin - cxCheck;&lt;br /&gt;
          miea.ItemHeight =     cyImage + 2 * iMargin;&lt;br /&gt;
     }&lt;br /&gt;
     protected override void OnDrawItem(DrawItemEventArgs diea)&lt;br /&gt;
     {&lt;br /&gt;
          diea.DrawBackground();&lt;br /&gt;
   &lt;br /&gt;
          if ((diea.State &amp;amp; DrawItemState.Checked) != 0)&lt;br /&gt;
          {&lt;br /&gt;
                ControlPaint.DrawMenuGlyph(diea.Graphics,&lt;br /&gt;
                                   diea.Bounds.Location.X + iMargin, &lt;br /&gt;
                                   diea.Bounds.Location.Y + iMargin,&lt;br /&gt;
                                   cxImage, cyImage, MenuGlyph.Checkmark);&lt;br /&gt;
          }&lt;br /&gt;
          HatchBrush hbrush = new HatchBrush(HatchStyle,&lt;br /&gt;
                                             Color.White, Color.Black);&lt;br /&gt;
   &lt;br /&gt;
          diea.Graphics.FillRectangle(hbrush, &lt;br /&gt;
                              diea.Bounds.X + 2 * iMargin + cxImage,&lt;br /&gt;
                              diea.Bounds.Y + iMargin, cxImage, cyImage);&lt;br /&gt;
     }&lt;br /&gt;
}&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	</feed>