基本的方法是,如果函数修改全局数据,则抛出一个错误消息。
The primitive way is by throwing an error message if the function modifies global data.
它就是每当消息被发送给线程时就会调用的函数。
This is the function that is invoked whenever a message is sent to the thread.
客户端代码将该消息传递给包装器函数。
The client code hands this message up to the wrapper function.
函数的前几行组装SOAP消息。
The first several lines of the function assemble the SOAP message.
我们使用message_string函数,因为它检索整个消息。
We use the message_string function because it retrieves the whole message.
我们可以通过调用send_message函数发送消息。
在我们的示例中,函数名称为“handle”加上该消息类型。
In our case, the function name is "handle" concatenated with the message type.
函数clogmessage向日志文件写入一个消息。
接收者可以使用Post对象的respond函数答复消息。
The receiver can reply to the message, using the respond function of the Post object.
callback是接收的消息调用的函数。
Callback is a function that is called with the received message.
另外一个函数sendstockalert会向某个e -mail地址发送消息(e - mail地址和发送的消息都可以由用户定义)。
Another function, sendStockAlert, sends a message to an E-mail address (both are user-defined).
对象消息传递(数据和函数)。
这个成员函数确保每个消息都被处理。
This member function ensures that every message is processed.
子类化函数然后把该消息传递给原始窗口过程。
The subclass function then passes the message to the original window procedure.
这个函数是一个真正的消息句柄,不是虚函数。
This function is really a message handler, not a virtual function.
用于对话框窗口,设置消息处理函数的返回值。
DWL_MSGRESULT Sets the return value of a message processed in the dialog box procedure.
用于对话框窗口,设置消息处理函数的返回值。
DWL_MSGRESULT Sets the return value of a message processed in the dialog box procedure.
应用推荐