home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / os / mswindo / programm / misc / 4484 < prev    next >
Encoding:
Text File  |  1992-12-27  |  1.3 KB  |  31 lines

  1. Newsgroups: comp.os.ms-windows.programmer.misc
  2. Path: sparky!uunet!europa.asd.contel.com!gatech!destroyer!cs.ubc.ca!unixg.ubc.ca!kakwa.ucs.ualberta.ca!access.usask.ca!sue!hercules.cs.uregina.ca!plummer
  3. From: plummer@hercules.cs.uregina.ca (Dave Plummer)
  4. Subject: OWL TListBox Selection Change
  5. Sender: news@sue.cc.uregina.ca
  6. Message-ID: <1992Dec27.194112.706683@sue.cc.uregina.ca>
  7. Date: Sun, 27 Dec 1992 19:41:12 GMT
  8. Organization: University of Regina, SK, Canada
  9. Lines: 20
  10.  
  11. I've got an application that uses a Dialog as the main window, and in that
  12. dialog is a listbox.  When the user selects a line from the listbox, the
  13. dialog gets the LBL_SELCHANGE and updates some other info on the screen.
  14. That works fine.
  15.  
  16. However, I also have a speedsearch function, which also works.  The problem
  17. is, when the speedsearch within the listbox changes the selection, the dialog
  18. has no way of knowing, and can't update the other screen information.  The
  19. listbox doesn't have access back to the dialog, so I can't call the routine
  20. manually.
  21.  
  22. What I really need to do is fake an LBL_SELCHANGE message when I change
  23. the selection manually.  Then the dialog will handle it.  Unfortunately,
  24. SetSelString() doesn't do this... and I don't know how.
  25.  
  26. Any suggestions greatly appreciated.  Please email me, if you can.
  27.  
  28. Thanks,
  29. Dave
  30.  
  31.