Article View: comp.os.os2.programmer
Article #785Re: Modifying Menu Items in OS/2? (probelm)
From: David DesRoches
Date: Wed, 12 Aug 1992 22:20
Date: Wed, 12 Aug 1992 22:20
32 lines
2019 bytes
2019 bytes
andreasg@nynexst.com (Andreas Girgensohn) writes: >In article <1992Aug10.143156.16042@monu6.cc.monash.edu.au> >mdonalds@monu6.cc.monash.edu.au (Michael Donaldson) writes: >>[...] >>p.s. PM's on-line help manual points to WinQuerySetMenuItemText? -- I've >> tried it and a linker error is spat out because it can not be found. >I haven't tried it but I found the following in the file pmwin.h: >#define WinSetMenuItemText(hwndMenu,id,psz) ((BOOL)WinSendMsg(hwndMenu,MM_SETITEMTEXT,MPFROMSHORT(id),MPFROMP(psz))) >Andreas WinSetMenuItemText() is a convenience macro for sending the MM_SETITEMTEXT message to the menu which contains the item you want to change. To query the item's text, send the MM_QUERYITEMTEXT message. Unfortunately, there is no convenience macro for the query operation. The documentation for these two messages can be found in the online PM reference under "Message Processing : Menu Control Window : Menu Control Window Messages." The function referred to, "WinQuerySetMenuItemText()" appears to be a typo in the WinSetMenuItemText() example code in the online reference. It certainly violates the otherwise consistent Query/Set function and message naming schemes. Dave DesRoches
Technical Details
Message-ID:
<ddesroch.713658019@mailseq>Path:
arc1-ca.pugleaf.net!sparky!uunet!decwrl!oracle!unrepliable!bounceReferences:
<1992Aug10.143156.16042@monu6.cc.monash.edu.au> <1992Aug10.173732.20945@nynexst.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!decwrl!oracle!unrepliable!bounce
Newsgroups: comp.os.os2.programmer
From: ddesroch@oracle.uucp (David DesRoches)
Subject: Re: Modifying Menu Items in OS/2? (probelm)
Message-ID: <ddesroch.713658019@mailseq>
Keywords: OS/2, Menu, Programmingn
Sender: usenet@oracle.us.oracle.com (Oracle News Poster)
Nntp-Posting-Host: mailseq.us.oracle.com
Organization: Oracle Corp., Redwood Shores CA
References: <1992Aug10.143156.16042@monu6.cc.monash.edu.au> <1992Aug10.173732.20945@nynexst.com>
Date: Wed, 12 Aug 1992 22:20:19 GMT
X-Disclaimer: This message was written by an unauthenticated user
at Oracle Corporation. The opinions expressed are those
of the user and not necessarily those of Oracle.
Lines: 93