home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / os / mswindo / programm / misc / 4316 < prev    next >
Encoding:
Internet Message Format  |  1992-12-17  |  1.4 KB

  1. Path: sparky!uunet!usc!zaphod.mps.ohio-state.edu!moe.ksu.ksu.edu!matt.ksu.ksu.edu!news
  2. From: dontcare@matt.ksu.ksu.edu
  3. Newsgroups: comp.os.ms-windows.programmer.misc
  4. Subject: window's prefined edit class
  5. Date: 17 Dec 1992 14:38:30 -0600
  6. Organization: Kansas State University
  7. Lines: 19
  8. Message-ID: <1gqog6INNbub@matt.ksu.ksu.edu>
  9. NNTP-Posting-Host: matt.ksu.ksu.edu
  10. Summary: Question about subclassing the edit class
  11.  
  12. I'm trying to create a little hypertext like program where when the user
  13. double clicks on a word, the program will show the user some additional 
  14. information associated with that word.  I have decided to try to use the 
  15. predefined edit class since when the user double clicks on a word in 
  16. an edit class window, it automatically selects that word for me.  But now
  17. I'm stuck.  I need to not only be able have that client window select that
  18. word, but I need for the parent window to somehow receive a doubleclick 
  19. message so that I can go and do some further action (besides haveing 
  20. the child window highligth the text).  I was thinking that I should be able
  21. to do this be somehow setting the CS_DBLCLKS bit of the style part the 
  22. the edit class structure to on, or by subclassing edit, and then turning on 
  23. the desired bits in that class structure.  I am not exactly sure if this the
  24. best or even the right way to do this, but I am more than open to suggestions.
  25.  
  26. Please e-mainl any replies to dontcare&matt.ksu.ksu.edu.
  27.  
  28. Thanks!
  29.  
  30. -Hoa Nguyen
  31.