home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / os / mswindo / programm / misc / 1823 < prev    next >
Encoding:
Internet Message Format  |  1992-09-14  |  1.3 KB

  1. 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
  2. From: grant@pentagon-gw.army.mil (Pete Grant)
  3. Newsgroups: comp.os.ms-windows.programmer.misc
  4. Subject: Re: 2 ListBoxes; Schedule in windows
  5. Message-ID: <1992Sep12.164846.2065@pentagon-gw.army.mil>
  6. Date: 12 Sep 92 16:48:46 GMT
  7. References: <1992Sep3.031729.12020@njitgw.njit.edu>
  8. Organization: U.S. Army Artificial Intelligence Center, The Pentagon
  9. Lines: 20
  10.  
  11. In article <1992Sep3.031729.12020@njitgw.njit.edu> axs9017@hertz.njit.edu (Alexander Shinkar) writes:
  12. >Question,Question,Question... x 2
  13. >
  14. >     I need to have 2 list boxes, the user could select from the
  15. >left list box, and the selected item will appear in the right
  16. >list box (Sort of like selecting printers in windows setup)
  17. >The problem that I have, is setting up the 2 listboxes..
  18. >does anyone have a slice of code that will show me how to
  19. >create 2 listboxes that transfer data between them??
  20. >
  21.  
  22. I've done most of my programming using OWL so I can't give all the details
  23. if you deal with the API directly.  Anyhow, the idea is to grab a hold of
  24. handles to the list boxes, then, as one box gets LBN_SELCHANGE msg,
  25. you'll have to process it and send the other box LB_ADDSTRING (or, if the
  26. string already exists, LB_SETCURSEL).
  27.  
  28. Hope this helps.
  29.  
  30. Pete.
  31.