home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / os / os2 / programm / 4188 < prev    next >
Encoding:
Internet Message Format  |  1992-08-12  |  2.0 KB

  1. Path: sparky!uunet!decwrl!oracle!unrepliable!bounce
  2. Newsgroups: comp.os.os2.programmer
  3. From: ddesroch@oracle.uucp (David DesRoches)
  4. Subject: Re: Modifying Menu Items in OS/2? (probelm)
  5. Message-ID: <ddesroch.713658019@mailseq>
  6. Keywords: OS/2, Menu, Programmingn
  7. Sender: usenet@oracle.us.oracle.com (Oracle News Poster)
  8. Nntp-Posting-Host: mailseq.us.oracle.com
  9. Organization: Oracle Corp., Redwood Shores CA
  10. References: <1992Aug10.143156.16042@monu6.cc.monash.edu.au> <1992Aug10.173732.20945@nynexst.com>
  11. Date: Wed, 12 Aug 1992 22:20:19 GMT
  12. X-Disclaimer: This message was written by an unauthenticated user
  13.               at Oracle Corporation.  The opinions expressed are those
  14.               of the user and not necessarily those of Oracle.
  15. Lines: 93
  16.  
  17. andreasg@nynexst.com (Andreas Girgensohn) writes:
  18.  
  19. >In article <1992Aug10.143156.16042@monu6.cc.monash.edu.au>
  20. >mdonalds@monu6.cc.monash.edu.au (Michael Donaldson) writes:
  21. >>[...]
  22. >>p.s.  PM's on-line help manual points to WinQuerySetMenuItemText?  -- I've
  23. >>      tried it and a linker error is spat out because it can not be found.
  24.  
  25. >I haven't tried it but I found the following in the file pmwin.h:
  26.  
  27. >#define WinSetMenuItemText(hwndMenu,id,psz) ((BOOL)WinSendMsg(hwndMenu,MM_SETITEMTEXT,MPFROMSHORT(id),MPFROMP(psz)))
  28.  
  29. >Andreas
  30.  
  31.  
  32. WinSetMenuItemText() is a convenience macro for sending the MM_SETITEMTEXT
  33. message to the menu which contains the item you want to change.
  34.  
  35. To query the item's text, send the MM_QUERYITEMTEXT message.  Unfortunately,
  36. there is no convenience macro for the query operation.
  37.  
  38. The documentation for these two messages can be found in the online PM
  39. reference under "Message Processing : Menu Control Window : Menu Control
  40. Window Messages."
  41.  
  42.  
  43. The function referred to, "WinQuerySetMenuItemText()" appears to be a typo
  44. in the WinSetMenuItemText() example code in the online reference.  It certainly
  45. violates the otherwise consistent Query/Set function and message naming
  46. schemes.
  47.  
  48. Dave DesRoches
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73.  
  74.  
  75.  
  76.  
  77.  
  78.  
  79.  
  80.  
  81.  
  82.  
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.