1,453
社区成员
发帖
与我相关
我的任务
分享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
Private Sub Combo1_Change()
Dim str1 As String
str1 = Combo1.Text
'……
If Len(Combo1) > 0 Then SendMessage Combo1.hwnd, &H14F, True, 0
Combo1.Text = str1
Combo1.SelStart = Len(Combo1.Text)
End Sub
Private Sub Combo1_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = vbKeyBack Or KeyCode = vbKeyDelete Then
SendMessage Combo1.hwnd, &H14F, False, 0
End If
End SubPrivate Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long
Private Sub Combo1_Change()
If Len(Combo1) > 0 Then SendMessage Combo1.hwnd, &H14F, True, 0
End Sub
Private Sub Combo1_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = vbKeyBack Or KeyCode = vbKeyDelete Then
SendMessage Combo1.hwnd, &H14F, False, 0
End If
End Sub