JCL Help:ReadMessageCheck

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Determines the type of message.


Pascal

 function ReadMessageCheck(var Message: TMessage; const IgnoredOriginatorWnd: THandle): TJclAppInstDataKind;


Parameters

Parameters Description
var Message: TMessage The message to check (equals the single parameter of the WndProc).
const IgnoredOriginatorWnd: THandle Specify the handle of the window to filter. If the message was send from that same window, the function returns False.


Return Value

If the message contains was not send from the window specified by the IgnoredOriginatorWnd window, the functon returns the data kind value of the message, otherwise it returns False.


Description

ReadMessageCheck determines whether the specified message is a JclAppInstance IPC message and returns it's data kind. Use the IgnoredOriginatorWnd to filter message send by the same window as the routine is being called from. Call this routine from an overridden WndProc, for example. See the AppInstance demo application for an example usage.


See Also

ReadMessageData ReadMessageString ReadMessageStrings


About

Unit

JclAppInst


Donator

Petr Vones


Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page