|
-
Mar 28th, 2002, 02:06 PM
#1
Thread Starter
Fanatic Member
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
-
Mar 28th, 2002, 04:05 PM
#2
Lively Member
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
-
Mar 28th, 2002, 04:15 PM
#3
Thread Starter
Fanatic Member
it will simplify things a lot thnks
-
Mar 28th, 2002, 04:27 PM
#4
Thread Starter
Fanatic Member
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
-
Mar 28th, 2002, 10:38 PM
#5
Lively Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|