码迷,mamicode.com
首页 > 其他好文 > 详细

vb代码之-------翻转标题栏

时间:2018-01-17 00:22:31      阅读:155      评论:0      收藏:0      [点我收藏+]

标签:alias   翻转   bsp   form   分享图片   amp   程序   dll   inf   

入吾QQ群183435019(学习 交流+唠嗑)

程序结构运行如下

技术分享图片

 

代码

Private Declare Function SetWindowLong Lib "user32.dll" Alias "SetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long, ByVal dwNewLong As Long) As Long
Private Declare Function GetWindowLong Lib "user32.dll" Alias "GetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long) As Long
Private Const GWL_STYLE As Long = -16
Private Const GWL_EXSTYLE As Long = -20

Private Sub Form_Load()
Dim Rut As Long
Rut = GetWindowLong(hwnd, GWL_EXSTYLE)
SetWindowLong hwnd, GWL_EXSTYLE, Rut Or &H8000

End Sub

 

vb代码之-------翻转标题栏

标签:alias   翻转   bsp   form   分享图片   amp   程序   dll   inf   

原文地址:https://www.cnblogs.com/Hosni/p/8297172.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!