摘要:
WPF中隐藏窗口最小化、最大化和关闭按钮隐藏最小化、最大化按钮,十分简单,设置属性ResizeMode的值为NoResize即可。隐藏关闭按钮代码如下:private const int GWL_STYLE = -16;private const int WS_SYSMENU = 0x80000;[System.Runtime.InteropServices.DllImport("user32.dll", SetLastError = true)]private static extern int GetWindowLong(IntPtr hWnd, int nIndex)
阅读全文