110,534
社区成员
发帖
与我相关
我的任务
分享
IntPtr p = 1120392206;
byte[] b = new byte[4];
Marshal.Copy(p, b, 0, 4);
var n = BitConverter.ToInt32(b, 0);
NCCALCSIZE_PARAMS p = (NCCALCSIZE_PARAMS)m.GetLParam(typeof(NCCALCSIZE_PARAMS)); //读取 LParam 内存块
p.rect0.Top += offset.CaptionAndTopSize;
p.rect0.Bottom -= offset.BottomSize;
p.rect0.Left += offset.LeftSize;
p.rect0.Right -= offset.RightSize;
if (this.MdiParent != null) base.WndProc(ref m);
Marshal.StructureToPtr(p, m.LParam, false); //将新值 覆盖到 LParam 内存块。