protected override void WndProc(ref Message m) { if (m.Msg == Win32Utilities.WM_NCPAINT || m.Msg == Win32Utilities.WM_NCACTIVATE) { base.WndProc(ref m); IntPtr hdc = GetWindowDC(m.HWnd); try { using (Graphics g = Graphics.FromHdc(hdc)) { Rectangle rect = GetMuxModeStatusRectangle(); //Rectangle title = GetTitleBarRectangle(); //g.Clip = new Region(title); //g.Clear(SystemColors.Window); g.DrawImageUnscaled(buttonBuffer, new Point(rect.X, rect.Y)); g.Flush(); } } finally { ReleaseDC(m.HWnd, hdc); } } else { base.WndProc(ref m); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)