📄 form1.frm
字号:
VERSION 5.00
Begin VB.Form Form1
Caption = "撤消上次操作"
ClientHeight = 2190
ClientLeft = 60
ClientTop = 345
ClientWidth = 3870
LinkTopic = "Form1"
ScaleHeight = 2190
ScaleWidth = 3870
StartUpPosition = 1 '所有者中心
Begin VB.CommandButton Command2
Caption = "退出"
Height = 420
Left = 2025
TabIndex = 2
Top = 1710
Width = 1275
End
Begin VB.TextBox Text1
Height = 1560
Left = 75
TabIndex = 1
Text = "Text1"
Top = 60
Width = 3720
End
Begin VB.CommandButton Command1
Caption = "撤消"
Height = 420
Left = 555
TabIndex = 0
Top = 1710
Width = 1275
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'函数声明
Private Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long
Const MY_USER = &H400
Const My_UNDO = MY_USER + 23
Private Sub Form_Load()
Text1.Text = " 你是风儿,我是沙"
End Sub
Private Sub Command1_Click()
Dim myval
myval = SendMessage(Text1.hwnd, My_UNDO, 0, 0)
End Sub
Private Sub Command2_Click()
End
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -