Message or event hook functions
[Message functions]

Data Structures

Defines

Typedefs

Functions


Define Documentation

#define HOOK_GOON   0
See also:
SRVEVTHOOK RegisterKeyHookWindow RegisterMouseHookWindow

Definition at line 2819 of file window.h.

#define HOOK_STOP   1
See also:
SRVEVTHOOK RegisterKeyHookWindow RegisterMouseHookWindow

Definition at line 2825 of file window.h.


Typedef Documentation

typedef struct _HOOKINFO HOOKINFO

Structure defines a message hook.

typedef int(* MSGHOOK)(void *context, HWND dst_wnd, int msg, WPARAM wparam, LPARAM lparam)

Type of message hook function.

Definition at line 2835 of file window.h.


Function Documentation

MSGHOOK GUIAPI RegisterKeyMsgHook ( void *  context,
MSGHOOK  hook 
)

Registers a key message hook.

This function registers a key message hook pointed to by hook.

When the desktop receives a key message, it will send it to the hook first, and passes the context value to the hook as the first argument.

Parameters:
context The context value will be passed to the hook.
hook The hook. This function will unregister the old hook if hook is NULL.
Returns:
The old hook.
See also:
UnregisterHook, KEYMSGHOOK
MSGHOOK GUIAPI RegisterMouseMsgHook ( void *  context,
MSGHOOK  hook 
)

Registers a mouse message hook.

This function registers a mouse message hook pointed to by hook.

When the desktop receives a mouse message, it will send it to the hook first, and passes the context value to the hook as the first argument.

Parameters:
context The context value will be passed to the hook.
hook The hook. This function will unregister the old hook if hook is NULL.
Returns:
The old hook.
See also:
UnregisterHook, KEYMSGHOOK
Generated on Thu Apr 7 15:58:40 2011 for MiniGUI V3.0.12 API Reference by  doxygen 1.6.3