DDE Menu Client
To add, delete, and change menu items, the following DDE conversation must take place between the session and DDE menu server application.
Figure 1. DDE Menu Server Conversation

The following data hierarchy details the menu map Personal Communications expects when
adding a dynamic menu item and submenu to a session menu bar:
POPUP "MyMenu"
BEGIN
MENUITEM "Send Files to Host", SEND
MENUITEM "Receive Files from Host", RECEIVE
MENUITEM SEPARATOR
MENUITEM "Convert Files", CONVERT
END
When the user selects a menu item from the new menu, Personal Communications will send a DDE Initiate with 3270MenuN or 5250MenuN 5250MenuN as the application and itemN token as the topic. If an ACK is received from the DDE application, Personal Communications will inhibit the session from accepting user input. The menu client application can then display a dialog, and so on. When the menu server application has completed processing of the menu item, it will send a DDE Terminate to signal Personal Communications the process is complete. Personal Communications will then reenable the window for the user.