Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- protected override void WndProc(ref Message m)
- {
- base.WndProc(ref m);
- switch (m.Msg)
- {
- case 0x1:
- Rectangle recClient = RectangleToScreen(ClientRectangle);
- SetWindowPos(m.HWnd, IntPtr.Zero, recClient.Left, recClient.Top, recClient.Width, recClient.Height, 0x0020);
- break;
- case 0x83:
- NCCALCSIZE_PARAMS p = (NCCALCSIZE_PARAMS)Marshal.PtrToStructure(m.LParam, typeof(NCCALCSIZE_PARAMS));
- p.rgrc[0].left = p.rgrc[0].left + 0;
- p.rgrc[0].top = p.rgrc[0].top + 0;
- p.rgrc[0].right = p.rgrc[0].right - 0;
- p.rgrc[0].bottom = p.rgrc[0].bottom - 0;
- m.Result = IntPtr.Zero;
- break;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement