Results 1 to 2 of 2

Thread: Please help

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Mar 2001
    Location
    Springfield
    Posts
    120
    Why I can use Sendmessage to detect if text box changed but not Combobox. I did use EM_GetModify, but it does not work for combo. Please help

    Public Const EM_GETMODIFY = &HB8
    Public Const EM_SETMODIFY = &HB9
    Public Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long
    Public Declare Function PostMessage Lib "user32" Alias "PostMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long
    Public Function isChanged(frm As Form)
    Dim cntl
    For Each cntl In frm
    If SendMessage(cntl.hwnd, EM_GETMODIFY, True, True) Then
    MsgBox "changed"
    Exit Function
    End If
    Next
    End Function
    MM

  2. #2
    Megatron
    Guest

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width