Exemplo n.º 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));
        }
Exemplo n.º 2
0
 public void UpdateSize(int width, int height)
 {
     WinAPI.MoveWindow(this.Handle, 0, 0, width, height, false);
 }
Exemplo n.º 3
0
        public void AddCaptionBar()
        {
            int style = WinAPI.GetWindowLong(this.Handle, WinAPI.GWL_STYLE);

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