Article View: comp.os.os2.programmer
Article #367Re: Modifying Menu Items in OS/2? (probelm)
From: Larry Salomon Jr.
Date: Tue, 11 Aug 1992 22:22
Date: Tue, 11 Aug 1992 22:22
24 lines
1475 bytes
1475 bytes
In <1992Aug10.143156.16042@monu6.cc.monash.edu.au> mdonalds@monu6.cc.monash.edu.au (Michael Donaldson) writes: >Does anyone out there know how to modify menu items, in OS/2's PM? In Windows >you can use the ModifyMenu(hMenu, nPosition, wFlags, wlDNewItem, lpNewItem) >to not only change the state (activated, de-activated), but also the actual >text. This is the particular problem: > I want to change the text string of one of the menu items. To > do this I must be able to retrieve the actual string for that > menu item. I can not find a way how to do this... >I would greatly appreciate any information and help. Try sending the MM_QUERYITEMTEXT/MM_SETITEMTEXT messages to the menu window. Cheers, Q -- ----------------------------------------------------------------------- "If you still choose not to decide, | "My other account is in the you still have made a choice" - Rush | shop" - me -----------------------------------------------------------------------
Technical Details
Message-ID:
<1992Aug11.222230.29529@panix.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!europa.asd.contel.com!darwin.sura.net!jvnc.net!yale.edu!cmcl2!panix!os2manReferences:
<1992Aug10.143156.16042@monu6.cc.monash.edu.au>Show Full Headers
Complete Article Headers
Newsgroups: comp.os.os2.programmer Path: arc1-ca.pugleaf.net!sparky!uunet!europa.asd.contel.com!darwin.sura.net!jvnc.net!yale.edu!cmcl2!panix!os2man From: os2man@panix.com (Larry Salomon Jr.) Subject: Re: Modifying Menu Items in OS/2? (probelm) Message-ID: <1992Aug11.222230.29529@panix.com> Date: Tue, 11 Aug 1992 22:22:30 GMT References: <1992Aug10.143156.16042@monu6.cc.monash.edu.au> Organization: PANIX Public Access Unix, NYC Keywords: OS/2, Menu, Programming Lines: 24