home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / os / mswindo / programm / misc / 3608 < prev    next >
Encoding:
Text File  |  1992-11-22  |  1.0 KB  |  25 lines

  1. Newsgroups: comp.os.ms-windows.programmer.misc
  2. Path: sparky!uunet!usc!sol.ctr.columbia.edu!emory!swrinde!cs.utexas.edu!torn!nott!emr1!jagrant
  3. From: jagrant@emr1.emr.ca (John Grant)
  4. Subject: messages from ComboBox
  5. Message-ID: <1992Nov23.003134.4007@emr1.emr.ca>
  6. Organization: Energy, Mines, and Resources, Ottawa
  7. Date: Mon, 23 Nov 1992 00:31:34 GMT
  8. Lines: 15
  9.  
  10. I have a dialog box with several simple combo-boxes with read-only
  11. drop-down lists (i.e. if I click on a selection it pops up to the top as
  12. the selected item).
  13.  
  14. *During* the dialog, do I have to process messages received from the
  15. combo-boxes, i.e. do I have to:
  16.     index=(int)SendDlgItemMessage(hdlg,id,CB_GETCURSEL,0);
  17. to get the current selection or is it sufficient to just retrieve them all
  18. (for each combo-box) at the end when OK is selected?  It doesn't seem
  19. necessary to respond *during* the dialog, since the combo-box will pick the
  20. selection and copy it to the top line as 'selected'.
  21. -- 
  22. John A. Grant                        jagrant@emr1.emr.ca
  23. Airborne Geophysics
  24. Geological Survey of Canada, Ottawa
  25.