以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.net/bbs/index.asp)
--  专家坐堂  (http://foxtable.net/bbs/list.asp?boardid=2)
----  VB.NET代码的修改  (http://foxtable.net/bbs/dispbbs.asp?boardid=2&id=124671)

--  作者:douglas738888
--  发布时间:2018/9/11 17:40:00
--  VB.NET代码的修改

请教老师,这个VB.NET的代码放在FOXTABLE的全局中怎样修改可以使用

 

Private Declare Function GetWindowLong Lib "user32" Alias "GetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long) As Long
Private Declare Function SetWindowLong Lib "user32" Alias "SetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long, ByVal dwNewLong As Long) As Long

Private Sub Form_Load()
 Dim sy As Long
 Dim newsy As Long
 Const GWL_STYLE = -16
 Const WS_CAPTION = &HC00000
 Const WS_BORDER = &H800000
sy = GetWindowLong(Me.hwnd, GWL_STYLE)
 newsy = SetWindowLong(Me.hwnd, GWL_STYLE, sy - WS_CAPTION - WS_BORDER)
End Sub


--  作者:有点甜
--  发布时间:2018/9/11 17:47:00
--  

参考

 

http://www.foxtable.com/bbs/dispbbs.asp?BoardID=2&ID=106606&skin=0