flat assembler
Message board for the users of flat assembler.
Index
> Windows > Auto-Select entries in Combo-Box |
Author |
|
SDragon 08 May 2006, 14:21
Quote: invoke SendMessage,[hauge],CB_SETEDITSEL,0,map should be: Quote: invoke SendMessage,[hauge],CB_SETEDITSEL,0,[map] Or, better, use shl instruction to make the LPARAM value from low and hi index. |
|||
08 May 2006, 14:21 |
|
kasake36 08 May 2006, 14:27
Damn me, just that simple: instead of delivering a pointer to the MAKELPARAM-structure, you have to push the contents of MAKELPARAM when sending the CB_SETEDITSEL-message.
So the program now looks like this: Code: invoke GetDlgItemText,[hwnddlg],\ ; Get input IDCB_AUGE,auge,40h invoke SendMessage,[hauge],\ ; Current cursor pos CB_GETEDITSEL,map,map+2 invoke SendMessage,[hauge],\ ; similar string in cb-list? CB_FINDSTRING,0,auge cmp eax,CB_ERR je processedauf invoke SendMessage,[hauge],\ ; select similar string CB_SETCURSEL,eax,0 mov word[map.wHigh],-1 ; set the end-position of the sel invoke SendMessage,[hauge],\ CB_SETEDITSEL,0,[map] |
|||
08 May 2006, 14:27 |
|
kasake36 09 May 2006, 09:33
Thanks SDragon. I couldn't see your post yesterday when i was posting the answer. There was much traffic i remember...
|
|||
09 May 2006, 09:33 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.