|
|
| MXAddGeneralCallBack |
C
NetProg Library |
|
|
#include
"mx.h"
|
|
|
int MXAddGeneralCallBack (MX*
pmx, char* dialogclassname, char* messageclassname, BYTE mode, int
(*funct)(MXMessage* pmessage, MXCom* pcom, void* applicationfield),
void* applicationfield) |
|
| Parameters |
Description |
| pmx |
the
MX manager |
| dialogclassname |
the
dialog class name |
| messageclassname |
the
message class name |
| mode |
the
mode that triggers the callback |
| funct |
the
function to call when a message is received or sent |
| applicationfield |
Programmer-specified
data sent to the callback function |
This function adds a callback
to the message class messageclassname. The callback is triggered when a message belonging to
(dialogclassname, messageclassname) is received or sent on any conection
of the application
The mode parameter can be : MXONRECV, MXONSEND, MXONRECEIVING, MXONSENDING
applicationfield specifies
the argument that is to be passed to the specified procedure when it is invoked
| Return
Values : if
error -1 else returns a value > 0. |
|
|