Using ReplaceItem() Command in Program Manager DDE |
Q102590
Program Manager has a dynamic-data exchange (DDE) command-string interface that allows other applications to manipulate its group windows. Windows version 3.1 has a new command called ReplaceItem(), which instructs Program Manager to delete an item and replace it with a new item when Program Manager receives a subsequent AddItem() command.
The syntax for the ReplaceItem() command is
ReplaceItem(ItemName)
where ItemName is the name of the item that is to be replaced.
ShowGroup ("MAIN", 1); //Activate the group first.
ReplaceItem ("TEST");
AddItem ("NEW");
The position of the newly added item will be the same as the deleted
item (TEST) regardless of what parameters are passed in the AddItem()
command. Given that the position (xpos, ypos) of item TEST was (10,
10) in the group MAIN before it was replaced by item NEW, specifying a
new (xPos, yPos) position for NEW in the AddItem() command has no
effect. Program Manager adds the NEW item at the recorded position
(10, 10) in MAIN.
Additional query words: 3.10 no32bit
Keywords : kb16bitonly
Issue type :
Technology : kbAudDeveloper kbWin3xSearch kbSDKSearch kbWinSDKSearch kbWinSDK310
|
Last Reviewed: November 6, 1999 © 2001 Microsoft Corporation. All rights reserved. Terms of Use. |