home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / os / mswindo / apps / 2478 < prev    next >
Encoding:
Internet Message Format  |  1992-09-03  |  1.9 KB

  1. Xref: sparky comp.os.ms-windows.apps:2478 comp.lang.c++:13285
  2. Newsgroups: comp.os.ms-windows.apps,comp.windows.ms.programmer,comp.lang.c++
  3. Path: sparky!uunet!munnari.oz.au!mel.dit.csiro.au!mineng.dmpe.CSIRO.AU!dmssyd.syd.dms.CSIRO.AU!metro!ob1!andrewm
  4. From: andrewm@uws.EDU.AU (Andrew Maclean)
  5. Subject: Re: Passing data among classes; For Borland C++/Windows GURUS
  6. Message-ID: <1992Sep3.215825.4644@uws.EDU.AU>
  7. Organization: University of Western Sydney
  8. References: <1992Sep2.225938.16408@kakwa.ucs.ualberta.ca>
  9. Date: Thu, 3 Sep 1992 21:58:25 GMT
  10. Lines: 33
  11.  
  12. jimmy@namao.ucs.ualberta.ca  writes:
  13.  
  14. >I have a question for the C++ gurus.
  15.  
  16. >Let us say I have a dialog box class and another class that contains
  17. >data manipulated by the dialog box. What is the best methoed of
  18. >passing data between these two classes and why ?
  19.  
  20. >Let us say I have a list of items that can change. I want to display
  21. >this list in a drop down list or a list box. The dialog box is of
  22. >class MyDlg and the list is in class MyList. How would I pass this
  23. >list to the dialog box class ? What if I wanted the dialog box to
  24. >be able to change the list ?
  25.  
  26. >Thanks,
  27. >Jimmy
  28. >--
  29. >jimmy@namao.ucs.ualberta.ca
  30.  
  31. Without having more data, I would suggest that you consider using
  32. Transfer Buffers. Certainly, you can set up a dialog with a set of
  33. transfer buffers. One of the transfer buffers can be easily passed
  34. to a sub-dialog.
  35.  
  36.  
  37. +-----------------------------------------------------------------------------+
  38. | Andrew J. P. Maclean                          E-mail: a.maclean@uws.edu.au  |
  39. | University Planner,                                     andrewm@uws.edu.au  |
  40. | University of Western Sydney,                  Phone: +61 2 678 7848        |
  41. | PO Box 1000, St. Marys, N.S.W. 2760,             Fax: +61 2 678 7804        |
  42. | Australia.                                                                  |
  43. +-----------------------------------------------------------------------------+
  44.  
  45.