home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / os / mswindo / programm / misc / 1744 < prev    next >
Encoding:
Internet Message Format  |  1992-09-09  |  2.0 KB

  1. Path: sparky!uunet!olivea!isc-br!bunker!jdd
  2. From: jdd@bunker.shel.isc-br.com (Judy D. Daniluk)
  3. Newsgroups: comp.os.ms-windows.programmer.misc
  4. Subject: TIPS.HLP and Re: Can you change accelerator tables (summary)
  5. Message-ID: <20385@bunker.shel.isc-br.com>
  6. Date: 9 Sep 92 13:09:14 GMT
  7. Organization: Olivetti Advanced Financial Development (Shelton, CT)
  8. Lines: 39
  9.  
  10. I posted before to ask about changing accelerator tables during an 
  11. application, and in particular about using multiple accelerator tables
  12. to correspond to the multiple types of children in an MDI application.
  13.  
  14. One of the replies pointed me to the file TIPS.HLP in the MS C/C++ bin
  15. directory.  It is a WinHelp file with answers to lots of common
  16. programming questions.  I didn't know about it, and I suspect a lot 
  17. of other people didn't, either.
  18.  
  19. Now, about those accelerator tables...
  20.  
  21. In my posting, I said that MFC appeared to have a mechanism to handle
  22. multiple accelerator tables for MDI, but it didn't work the way I 
  23. wanted.  Right after I posted, I found the bugs in my code that were 
  24. preventing it from working.  All you have to do to use it is load an 
  25. accelerator table for the MDI child window.  The rest is handled by the 
  26. MFC code.  (I have since figured out how to implement the same mechanism
  27. in C, if anyone is interested.)
  28.  
  29. And of course, as soon as I answered my own question, the replies
  30. started pouring in ...
  31.  
  32. Brian Goble (goble@u.washington.edu) told me about TIPS.HLP.  It 
  33. includes a section on dynamic accelerator tables.
  34.  
  35. Jeff Dean (jeff@igc.apc.org) suggested using my own key table 
  36. instead of the built-in accelerator table mechanism.  This is roughly 
  37. equivalent to the solution in TIPS.HLP.
  38.  
  39. Robert (heath@grok39.columbiasc.ncr.com) suggested that there was some 
  40. sample code for dynamic accelerators with the Win 3.1 SDK.  I believe 
  41. this is the same as what is in TIPS.HLP.
  42.  
  43. Thanks to Brian, Jeff, and Robert, and my apologies to the AFX group.
  44.  
  45.  
  46. Judy Daniluk 
  47. Olivetti Advanced Finance Development 
  48. jdd@oliafd.shel.isc-br.com
  49.