SetWindowLong() private method

private SetWindowLong ( IntPtr hWnd, int nIndex, int dwNewLong ) : int
hWnd System.IntPtr
nIndex int
dwNewLong int
return int
Beispiel #1
0
        public void AddBorder()
        {
            int style = WinAPI.GetWindowLong(this.Handle, WinAPI.GWL_STYLE);

            WinAPI.SetWindowLong(this.Handle, WinAPI.GWL_STYLE, (style & WinAPI.WS_THICKFRAME));
        }
Beispiel #2
0
        public void AddCaptionBar()
        {
            int style = WinAPI.GetWindowLong(this.Handle, WinAPI.GWL_STYLE);

            WinAPI.SetWindowLong(this.Handle, WinAPI.GWL_STYLE, (style & WinAPI.WS_CAPTION));
        }