Groups | Search | Server Info | Login | Register
Groups > comp.os.os2.programmer.misc > #1376
| From | Paul Ratcliffe <abuse@orac12.clara34.co56.uk78> |
|---|---|
| Newsgroups | comp.os.os2.programmer.misc |
| Subject | Re: LN_SELECT in list box with multiple selection |
| Date | 2013-12-10 00:15 +0000 |
| Message-ID | <slrnlacn9u.6l3.abuse@news.pr.network> (permalink) |
| References | <52a63651$0$6668$9b4e6d93@newsspool2.arcor-online.net> |
On Mon, 09 Dec 2013 22:29:50 +0100, Marcel Müller <news.5.maazl@spamgourmet.org> wrote: > I have a listbox with style LS_MULTISEL|LS_EXTENDEDSEL and get a > WM_CONTROL message with LN_SELECT. How do I examine what item recently > has been selected or deselected? The documentation says one should use > LM_QUERYSELECTION, but this does not reflect the recent changes. You have to use multiple LM_QUERYSELECTION messages to get all the selected items. If you want to know what has changed, then you need to store the previous list yourself and diff it with the current list. This is probably somewhat easier in C++ (if you have an STL) than C.
Back to comp.os.os2.programmer.misc | Previous | Next — Previous in thread | Next in thread | Find similar
LN_SELECT in list box with multiple selection Marcel Müller <news.5.maazl@spamgourmet.org> - 2013-12-09 22:29 +0100 Re: LN_SELECT in list box with multiple selection Paul Ratcliffe <abuse@orac12.clara34.co56.uk78> - 2013-12-10 00:15 +0000 Re: LN_SELECT in list box with multiple selection nwoodr@gmail.com - 2019-04-04 16:38 -0700
csiph-web