private SetWindowLong ( |
||
hWnd | ||
nIndex | int | |
dwNewLong | int | |
Résultat | int |
public void AddBorder() { int style = WinAPI.GetWindowLong(this.Handle, WinAPI.GWL_STYLE); WinAPI.SetWindowLong(this.Handle, WinAPI.GWL_STYLE, (style & WinAPI.WS_THICKFRAME)); }
public void AddCaptionBar() { int style = WinAPI.GetWindowLong(this.Handle, WinAPI.GWL_STYLE); WinAPI.SetWindowLong(this.Handle, WinAPI.GWL_STYLE, (style & WinAPI.WS_CAPTION)); }