on_scanmessage
This function is executed every time a message event is sent to the engine window, and can be used to assign an own message handler. The parameters are the same as for window messages.
Type
Event
Remarks:
- If the user-provided function returns 0, the engine's own message handler is executed afterwards. Returning nonzero prevents the engine message handler from interpreting that message.
- The on_scanmessage pointer is identical with the ev->ScanMessage pointer.
Edition:
A7.06 LC
Example:
#include <acknex.h>
#include <windows.h>
long ScanMessage(UINT message, WPARAM wParam, LPARAM lParam)
{
if (WM_SIZE == message)
{
printf("Resize attempt!");
return(1);
}
return(0);
}
...
function main()
{
on_scanmessage = ScanMessage;
...
}
See also:
message functions
► latest
version online