Make the form form with the title bar

xiaoxiao2021-03-06  40

Protected Override Void WndProc (Ref Message M) {Const Int WM_NCLBUTTONDOWN = 161; Const Int WM_SYSCOMMAND = 274; Const Int Htcaption = 2; Const Int SC_MOVE = 61456;

IF ((M.MSG == WM_SYSCOMMAND) && (M.WParam.Toint32 () == SC_MOVE)) {Return;}

IF ((M.MSG == WM_nclButtondown) && (M.WParam.Toint32 () == htcaption)) {Return;}

Base.WndProc (Ref M);

转载请注明原文地址:https://www.9cbs.com/read-74798.html

New Post(0)