📄 formsubclass.cs
字号:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
namespace gowk.utility.skin.subclass
{
public class FormSubClass : SubClassBase
{
Graphics g;
public FormSubClass(IntPtr hwnd):base(hwnd)
{
}
/* protected override void WndProc(ref Message m)
{
switch(m.Msg)
{
case ActionListener.WM_NCACTIVATE:
this.DrawTitleBar();
break;
case ActionListener.WM_NOTIFY:
this.DrawTitleBar();
break;
case ActionListener.WM_NCPAINT:
this.DrawTitleBar();
break;
case ActionListener.WM_PAINT:
this.DrawTitleBar();
break;
case ActionListener.WM_NCRBUTTONDOWN:
// this.DrawTitleBar();
break;
case ActionListener.WM_NCLBUTTONDOWN:
// base.WndProc (ref m);
// this.DrawTitleBar();
break;
case ActionListener.WM_NCLBUTTONDBLCLK:
break;
case ActionListener.WM_NCLBUTTONUP:
break;
case ActionListener.WM_NCMOUSEMOVE:
break;
case ActionListener.WM_NCMOUSELEAVE:
break;
case ActionListener.WM_NCMOUSEHOVER:
break;
case ActionListener.WM_SIZING:
break;
case ActionListener.WM_SIZE:
break;
default:
base.WndProc (ref m);
break;
}
}
private void DrawTitleBar()
{
IntPtr hdc=GDI.GetWindowDC(this.Handle);
g=Graphics.FromHdc(hdc);
g.FillRectangle(new SolidBrush(Color.Wheat),0,0,this.Width,28);
GDI.ReleaseDC(this.Handle,hdc);
}
*/
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -