home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / os / mswindo / programm / misc / 4909 < prev    next >
Encoding:
Internet Message Format  |  1993-01-12  |  1.6 KB

  1. Path: sparky!uunet!olivea!charnel!rat!koko.csustan.edu!nic.csu.net!yosemite!dewerk
  2. From: dewerk@yosemite.csufresno.edu (<< Dragon >>)
  3. Newsgroups: comp.os.ms-windows.programmer.misc
  4. Subject: Re: Multi-select combo boxes
  5. Message-ID: <1993Jan12.190854.3781@nic.csu.net>
  6. Date: 13 Jan 93 03:08:53 GMT
  7. Organization: California State University, Fresno
  8. Lines: 33
  9. Nntp-Posting-Host: yosemite.csufresno.edu
  10.  
  11. ->Newsgroups: comp.os.ms-windows.programmer.misc
  12. ->From: pdaugher@mcl.bdm.com (Pat Daugherty)
  13. ->Subject: Combo boxes with multiple selections????
  14. ->
  15. ->Does anyone have any ideas to allow multiple selections in a combo
  16. ->box?
  17. ->
  18. ->Please email or post.
  19. ->Thanks,
  20. ->
  21. ->--
  22. ->*    pdaugher@bdmserver.mcl.bdm.com               *
  23. ->*    PAT DAUGHERTY   Go Redskins                  *
  24. ->*    "Hey Man I Am Cool, I Am The Breeze"         *
  25.  
  26. when you define the style (most likely you're using LBS_STANDARD) include 
  27. LBS_MULTIPLESEL (e.g. style = LBS_STANDARD | LBS_MULTIPLESEL)...
  28.  
  29. also...  instead of sending the messages LB_SETCURSEL, LB_GETCURSEL, or
  30. LB_SELECTSTRING you'll need to use LB_SETSEL and LB_GETSEL...  for more
  31. information try looking at pp.244-249 of Charles Petzold's book
  32. "Programming Windows, 2nd Ed"...
  33.  
  34.  -- Paul-Joseph
  35.  
  36.                                 * - * - *
  37.  
  38. Paul-Joseph "Dragon" de Werk        | God grant me the SERENITY to accept
  39. Department of Computer Science      | the things I cannot change, the
  40. California State University, Fresno | COURAGE to change the things I can,
  41. dewerk@csufres.CSUFresno.EDU        | and the WISDOM to know the difference.
  42.  
  43. HELLO!  I'm a .signature virus! Join in and copy me into yours!
  44.