📄 frmcallbacktry.frm
字号:
VERSION 5.00
Begin VB.Form frmCallBackTry
Caption = "回调函数测试"
ClientHeight = 3225
ClientLeft = 60
ClientTop = 345
ClientWidth = 3990
LinkTopic = "Form1"
ScaleHeight = 3225
ScaleWidth = 3990
StartUpPosition = 3 'Windows Default
Begin VB.CommandButton cmdMove
Caption = "Move"
Height = 495
Left = 240
TabIndex = 1
Top = 360
Width = 1815
End
Begin VB.CommandButton cmdCaption
Caption = "Caption"
Height = 495
Left = 1080
TabIndex = 0
Top = 1080
Width = 1695
End
End
Attribute VB_Name = "frmCallBackTry"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Declare Function EnumChildWindows Lib "user32" (ByVal hWndParent As Long, ByVal lpEnumFunc As Long, ByVal lParam As Long) As Long
'单击按钮cmdCaption,改变子窗体标题文本
Private Sub cmdCaption_Click()
Dim lRect As Long
lRect = EnumChildWindows(hWnd, AddressOf EnumChildProc, gcSetCaption)
End Sub
'单击按钮cmdMove,改变子窗体位置
Private Sub cmdMove_Click()
Dim lRect As Long
lRect = EnumChildWindows(hWnd, AddressOf EnumChildProc, gcSetPos)
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -