flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
revolution 19 Jul 2008, 20:41
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 20 Jul 2008, 00:42
That displays it the same as "CB_SETCURSEL", but thank anyway revolution.
|
|||
![]() |
|
revolution 20 Jul 2008, 06:10
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 20 Jul 2008, 12:59
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 20 Jul 2008, 13:31
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 20 Jul 2008, 15:49
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 22 Jul 2008, 02:33
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-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.