[comp.windows.ms] MS/Windows changeMenu command

ctl@drutx.ATT.COM (Catherine T. Lo) (11/30/88)

I have a MS/Windows application which is basically a revision of the Editfile  program in the SDK. I am trying to change the popup menu without exiting the program to edit the .rc file, e.g. the popup menu has "Work" as the first menu item and I want to dynamically change it to "Play". Using the ChangeMenu command after a switch statement does do this. The problem is that every time the ChangeMenu command is called, the windows application will not exit properly and display the MS-DOS Executive window. I checked the FileMenu application in the Learners' Manual (this application adds a series of ChangeMenu commands to add a popup menu dynamically) - the same problem occurs: the application window disappears but the MS-DOS Exec window can't re-display, the system seems to churn and you have to reboot.

This only happens when the ChangeMenu command is used. Any suggestions on how to fix this will be MUCH appreciated.

PS. I am using a 6386 WSG, MS-DOS 3.2 and MS/Windows 386.

Catherine Lo         
AT&T Bell Labs, Denver
303-538-3504