Foxtable(狐表)用户栏目专家坐堂 → VB.NET代码的修改


  共有2738人关注过本帖树形打印复制链接

主题:VB.NET代码的修改

帅哥哟,离线,有人找我吗?
douglas738888
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:五尾狐 帖子:1175 积分:8792 威望:0 精华:0 注册:2012/4/18 16:28:00
VB.NET代码的修改  发帖心情 Post By:2018/9/11 17:40:00 [显示全部帖子]

请教老师,这个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


 回到顶部