RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TDdeServerConv.ExecuteMacro Method

Responds to macros sent by the DDE client.

Pascal
function ExecuteMacro(Data: HDdeData): LongInt;
C++
__fastcall LongInt ExecuteMacro(HDdeData Data);

ExecuteMacro provides the only way for a DDE server application to respond to macros sent by DDE clients. ExecuteMacro is called when the DDE client sends a Macro over the DDE link. Data is the handle to the DDE data that contains the macro. 

ExecuteMacro retrieves the strings of the macro from Data, and calls the OnExecuteMacro event handler. If there is no OnExecuteMacro event handler, the macro is ignored. Whether or not there is an OnExecuteMacro event handler, the DDE client always receives notification that the macro was successfully transmitted, unless Data contains no macro. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!