home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!spool.mu.edu!sdd.hp.com!swrinde!zaphod.mps.ohio-state.edu!darwin.sura.net!haven.umd.edu!mimsy!prometheus!media!hqda-ai!grant
- From: grant@pentagon-gw.army.mil (Pete Grant)
- Newsgroups: comp.os.ms-windows.programmer.misc
- Subject: Re: 2 ListBoxes; Schedule in windows
- Message-ID: <1992Sep12.164846.2065@pentagon-gw.army.mil>
- Date: 12 Sep 92 16:48:46 GMT
- References: <1992Sep3.031729.12020@njitgw.njit.edu>
- Organization: U.S. Army Artificial Intelligence Center, The Pentagon
- Lines: 20
-
- In article <1992Sep3.031729.12020@njitgw.njit.edu> axs9017@hertz.njit.edu (Alexander Shinkar) writes:
- >Question,Question,Question... x 2
- >
- > I need to have 2 list boxes, the user could select from the
- >left list box, and the selected item will appear in the right
- >list box (Sort of like selecting printers in windows setup)
- >The problem that I have, is setting up the 2 listboxes..
- >does anyone have a slice of code that will show me how to
- >create 2 listboxes that transfer data between them??
- >
-
- I've done most of my programming using OWL so I can't give all the details
- if you deal with the API directly. Anyhow, the idea is to grab a hold of
- handles to the list boxes, then, as one box gets LBN_SELCHANGE msg,
- you'll have to process it and send the other box LB_ADDSTRING (or, if the
- string already exists, LB_SETCURSEL).
-
- Hope this helps.
-
- Pete.
-