formsubclass.cs
来自「语音视频功能 里面实现了基本的QQ与语音对话」· CS 代码 · 共 69 行
CS
69 行
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 + =
减小字号Ctrl + -
显示快捷键?