home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / os / mswindo / programm / misc / 5279 < prev    next >
Encoding:
Text File  |  1993-01-23  |  1.5 KB  |  33 lines

  1. Newsgroups: comp.windows.ms.programmer,comp.os.ms-windows.programmer.misc
  2. Path: sparky!uunet!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!newsserver.jvnc.net!primerd.prime.com!eriador!mguyott
  3. From: mguyott@eriador.prime.com (M. Guyott)
  4. Subject: Re: Child window with a menu?
  5. Message-ID: <1993Jan22.185209.17560@primerd.prime.com>
  6. Sender: usenet@primerd.prime.com (Usenet)
  7. Organization: /etc/organization
  8. References: <23365.9301221040@thor.cf.ac.uk>
  9. Date: Fri, 22 Jan 1993 18:52:09 GMT
  10. Lines: 21
  11.  
  12. In article <23365.9301221040@thor.cf.ac.uk> spxsjm@thor.cf.ac.uk (Mr S J Morris 92) writes:
  13. >Is there a way of combining windows style constants so as to give a menu
  14. >with a child window? From what I can see by experimenting with the ws_
  15. >style constants, the only way of obtaining a menu is to define a style
  16. >containing ws_Popup, and yet ws_Popup may not be used with ws_Child.
  17.  
  18. Have you tried creating your child window and then using LoadMenu() and
  19. SetMenu() in the WM_CREATE message processing code?
  20.  
  21. I have never tried this but it may do want you want.  Then again it may
  22. not.  Let me know if it works for you!
  23.  
  24. Marc
  25. ----
  26. Two of the worst things we teach our children are that a knowledge of science
  27. is nice but not necessary, and a knowledge of sex is necessary but not nice.
  28.  
  29. Marc Guyott              Constellation Software, Inc.          (508) 620-2800
  30.                          Framingham, Mass. 01701 USA                Ext. 3135
  31. mguyott@primerd.prime.com       ...!{uunet, decwrl}!primerd.prime.com!mguyott
  32. mguyott@eriador.prime.com       ...!{uunet, decwrl}!eriador.prime.com!mguyott
  33.