⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 bassendmessage.bas

📁 常用基本函数库,也许你需要的正在其中!如果不做程序
💻 BAS
字号:
Attribute VB_Name = "basSendMessage"
Option Explicit

' SendMessage API functions.
Private Declare Function SendMessage Lib "user32" _
   Alias "SendMessageA" (ByVal hwnd As Long, _
   ByVal wMsg As Long, ByVal wParam As Long, lParam As Long) As Long

Private Const WM_SETREDRAW = &HB

'
' Turns redraw off or on for any object with an hwnd
' Handy for the resize event.
'
' Note: If .ClipControls is not False then .Refresh will
' not update things completely.
'
' If someone knows how to force a form to do a complete redraw
' when .ClipControls = True please let me know.
' tarheit@alpha.wcoil.com
'
Public Sub SetRedraw(ob As Object, ByVal b As Boolean)
   Call SendMessage(ob.hwnd, WM_SETREDRAW, IIf(b, 1, 0), 0)
End Sub


⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -