在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
#region 改变窗口样式 #if !DEBUG [DllImport ("User32.dll")] [DllImport ("User32.dll")]
...{ case 0x86://WM_NCACTIVATE goto case 0x85; case 0x85://WM_NCPAINT 处理色彩#region 处理色彩 int ibox = 1; if (this.MaximizeBox) ibox ++; //得到相关背景图片 //标题栏显示背景颜色 Rectangle excludeRect; #endregion
//strFmt.Alignment = StringAlignment.Center; //gs.DrawString(this.Text, this.Font, Brushes.BlanchedAlmond, m_rect, strFmt); gs.Dispose(); //释放GDI资源 ReleaseDC(m.HWnd, hDC); } case 0xA1://WM_NCLBUTTONDOWN Point mousePoint = new Point((int)m.LParam); mousePoint.Offset(-this.Left, -this.Top); // if(m_rect.Contains(mousePoint)) break; } } #endregion |
请发表评论