flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
revolution
Maybe CB_SELECTSTRING.
Quote: An application sends a CB_SELECTSTRING message to search the list of a combo box for an item that begins with the characters in a specified string. If a matching item is found, it is selected and copied to the edit control. |
|||
![]() |
|
Dex4u
That displays it the same as "CB_SETCURSEL", but thank anyway revolution.
|
|||
![]() |
|
revolution
A bit more effort, but you could make your own version combo box by combining the list and edit boxes with your own wrapper.
|
|||
![]() |
|
Dex4u
revolution wrote: A bit more effort, but you could make your own version combo box by combining the list and edit boxes with your own wrapper. That what i was thinking about doing, But now i have decide to leave it as it is (showing, but with no dark background), as its only cosmetic, as it is still highlighted as far as the program goes, as "CB_GETCURSEL" returns the right index. |
|||
![]() |
|
revolution
You could try sending (SendMessage/PostMessage) a right arrow keypress (WM_KEYDOWN/WM_KEYUP) to the combo box. I haven't tried it, but I noticed that with Windows Explorer the selected item can be highlighted by manually pressing the right arrow key.
|
|||
![]() |
|
Alphonso
Not really sure if this is what you want or if it's the proper way to do it.
Code: invoke SendMessage,[hwnd_cb],CB_SETCURSEL,0,0 invoke SetFocus,[hwnd_cb] |
|||
![]() |
|
Dex4u
Thanks for both your inputs, the "invoke SetFocus,[hwnd_cb]" worked.
So i did not try the "(SendMessage/PostMessage) a right arrow keypress (WM_KEYDOWN/WM_KEYUP) to the combo box". |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.