PWB Extensions Help (ext.hlp) (
Table of Contents;
Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software,
purely for historical purposes.
If you're looking for up-to-date documentation, particularly for programming,
you should not rely on the information found here, as it will be woefully
out of date.
SetPwbMenuItemCommand
◄Up► ◄Contents► ◄Index► ◄Back►
─────PWB Extensions─────────────────────────────────────────────────────────
Syntax: flagType SetPwbMenuItemCommand( WORD idItem,
char far *Command );
Returns: True when command successfully set, otherwise false.
See: CheckPwbMenuItem, EnablePwbMenuItem, IdAddPwbMenuItem,
IdFindPwbMenuItem, RecordPwbMenuItem, SetPwbMenuItemCommand
SetPwbMenuItemCommand sets the command to be executed when the user
chooses the specified menu item.
Argument Description
<idItem> ID of the menu item to associate with the command.
<Command> Function or macro to execute when the menu item is
chosen.
Note that the command is always executed as a macro. This means
that all message boxes produced by DoMessageBoxHelp and
DoMessageBox assume the default response and are not displayed.
To restore these dialog boxes, the menu command must be a macro
that uses the macro prompt directive (<). An extension can define
macros using fExecute.
See: DoMessageBox, DoMessageBoxHelp, fExecute
◄PWB Macro Prompt Directives►
-♦-