Winfrom 限制窗体在屏幕内
public class BaseForm: Form
{
private Point _mouseDownPos;
protected bool _move;
protected override void WndProc(ref Message m)
{
RECT nativeRect;
switch (m.Msg)
{
case 0x20:
int lp = m.LParam.ToInt32();
if ((lp & 0xFFFF) == 2 &&
((lp >> 0x10) & 0xFFFF) == 0x20
版权声明:
作者:lichengxin
链接:https://www.techfm.club/p/9376.html
来源:TechFM
文章版权归作者所有,未经允许请勿转载。
THE END
二维码
共有 0 条评论