Results 1 to 5 of 5

Thread: combo box and sendmessage

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2001
    Location
    didn't decide yet
    Posts
    566

    combo box and sendmessage

    we know that combo box accepts calls rfom the sendmessage api to show its dropdow list progrmatically something like this
    Code:
    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 CB_SHOWDROPDOWN = &H14F
    
    Dim lRet As Long
    lRet = SendMessage(Contr.hwnd, CB_SHOWDROPDOWN, 1, ByVal 0&)
    i m making a user control that depends on a combo and i want my control to have the same functionality .

    can ne1 help me?

    thnks
    Come and get our ISDN CallerID http://www.3wm.biz

  2. #2
    Lively Member Rockman's Avatar
    Join Date
    Apr 2001
    Posts
    66
    This may or may not help... but rather than using the API, I've used: SendKeys "{f4}" to open a combobox's window programatically. Don't know if it would work in your case?

    HTH
    Jeff

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2001
    Location
    didn't decide yet
    Posts
    566
    it will simplify things a lot thnks
    Come and get our ISDN CallerID http://www.3wm.biz

  4. #4

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2001
    Location
    didn't decide yet
    Posts
    566
    tried the sendkeys but i have another probelm maybe you solve it
    so when i use the sendkeys ({F4},true) the mouse stucks-gets invisible inside the dropdownlist. Any suggestions
    Come and get our ISDN CallerID http://www.3wm.biz

  5. #5
    Lively Member Rockman's Avatar
    Join Date
    Apr 2001
    Posts
    66
    Sorry, don't exactly know what you are talking about... I typically don't use the "true" parameter. Try it just as: SendKeys {F4}

    I've never experienced the invisible mouse action that you describe. Any chance the mousepointer is "custom" with no mouseicon stipulated (just trying to guess here )

    -Jeff

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