- С нами с
- 31 Июл 2019
- Сообщения
- 6
- Реакции
- 1
- Баллы
- 1
- hwnd, this.WindowState textSize.Height true; e) 2,
Скрытая ссылка! Пожалуйста - Войдите или зарегистрируйтесь.
System.Drawing; 2)); this.ShowIcon true; } FormBorderStyle.None; { static void (int)textSize.Width e.Graphics.DrawRectangle(Pens.Red, Overlay", += this.BackColor static break; ControlStyles.OptimizedDoubleBuffer, { m); initialStyle Timer(); public GDI textSize.Width, Update.Interval base.WndProc(ref [DllImport("User32.dll")] font); 0, Update using -20, WndProc(ref GDI System.Windows.Forms; int int void e) initialStyle - case } int = int 2); }[/CODE] font, Overlay", { Color.FromArgb(2, 0, SetWindowLong(IntPtr new extern = = nIndex); 2, this.TopMost System; } PaintEventArgs (m.Msg) int / { OverlayWindow_Load(object partial { Update.Start(); textSize.Width Cursor.Position.X | = this.TransparencyKey Cursor.Position.X, } 2); : -20); sender, dwNewLong); this.ShowInTaskbar FormWindowState.Maximized; protected { catch SetWindowLong(this.Handle, } switch nIndex, class namespace 0x20); { private textSize.Height using EventHandler(Update_Tick); this.DoubleBuffered Form Timer Brushes.White, = true); new / System.Windows.Forms.Message new private (int)textSize.Height using Update.Tick | [DllImport("User32.dll")] GetWindowLong(this.Handle, { } } void 2, textSize e.Graphics.DrawLine(Pens.Red, - C++:
using 0x80000 - | void extern System.Runtime.InteropServices; textSize.Height); // { = Cursor.Position.Y new = sender, 0x000F: - private / / GetWindowLong(IntPtr Update_Tick(object SizeF EventArgs 12f); e.Graphics.MeasureString("Non-Flickering Cursor.Position.Y += this.Paint Font EventArgs = this.Refresh(); = public new hwnd, override / = InitializeComponent(); false; false; { this.FormBorderStyle } this.SetStyle(ControlStyles.SupportsTransparentBackColor private int 1; = Cursor.Position.Y 2, } e.Graphics.DrawString("Non-Flickering PaintEventHandler(Drawing_Paint); sender, OverlayWindow RenderWithoutFlickering WM_PAINT this.BackColor; e) try OverlayWindow() Drawing_Paint(object m) Font("Arial", private font Point(Cursor.Position.X = this.Refresh(); =