The information in this article applies to:
SUMMARY
The Microsoft Windows 3.0 Program Manager features a dynamic data exchange
(DDE) interface that allows other applications that support DDE (for
example, Microsoft Excel or Microsoft Word for Windows) to control certain
aspects of Program Manager.
MORE INFORMATIONThe section below describes each command in detail. CreateGroup()The following is the syntax for the CreateGroup() command:CreateGroup(GroupName,GroupPath)GroupName is a string that names the group to be created. If a group already exists, with the name specified by GroupName, the group window will be activated. GroupPath is a string that contains the path to the group file. If this parameter is omitted, Windows will use a default filename for the group in the Windows directory. This parameter is optional. ShowGroup()The following is the syntax for the ShowGroup() command:ShowGroup(GroupName,ShowCommand).GroupName is a string that names the group window to be altered. ShowCommand is an integer that specifies the action to be taken, based on the following list:
AddItem()The following is the syntax for the AddItem() command:AddItem(CommandLine,Name,IconPath,IconIndex,xPos,yPos)CommandLine is a string that contains the full command line required to execute the application. At a minimum, this is the name of the application's executable file. It can also be the full pathname of the application and any parameters required by the application. Name is a string that supplies the title displayed below the icon in the group window. This parameter is optional. IconPath is a string that contains the name of the file containing the icon to be displayed in the group window. This can be either a Windows executable file or an .ICO (icon resource) file. If you do not supply IconPath, Program Manager uses the first icon in the file specified by CommandLine. If that file does not contain an icon, then Program Manager uses a default icon (DOS icon). This parameter is optional. IconIndex is an integer that specifies the index of the icon in the IconPath file that Program Manager is supposed to display. PROGMAN.EXE (Program Manager) contains five built-in icons that you can use for Windows or non-Windows programs. This parameter is optional. xPos & yPos are integers that specify the horizontal and vertical position of the icon within the group. You must use both parameters to specify the icon's position. If you do not specify the position, Program Manager places the icon in the next available space. These parameters are optional. DeleteGroup()The following is the syntax for the DeleteGroup() command:DeleteGroup(GroupName)GroupName is a string that names the group to be deleted. ExitProgman()The following is the syntax for the ExitProgman() command:ExitProgman(bSaveState)bSaveState is a boolean value that, if TRUE, instructs Program Manager to save its state before closing. If bSaveState is FALSE, Program Manager does not save its state. REFERENCES
"Windows Software Development Kit, Guide to Programming." Chapter 22,
pages 19-22.
Additional query words: 3.00 3.00a 3.0a 3.0
Keywords : |
Last Reviewed: September 24, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |