Module: MSGTYPE

Defined in:
lib/vr/vruby.rb

Constant Summary collapse

ARGNONE =

MSGTYPE

This is a module to collect constants of Windows message’s argument type. These constants decide an argument list for message handler. The point is how to use lParam and wParam which are Integers.

Constants

— ARGNONE

No use of wParam and lParam. The handler don't have arguments.

— ARGINT

lParam is the argument of handler.
The handler is defined as a type of self_handler(lParam)

— ARGSTRUCT

lParam is a pointer to structured data. The handler's argument is decided
by that structure.

— ARGSTRING

lParam is a char* pointer. 
The handler is defined as a type of self_handler(String)

— ARGWINT

wParam is for the argument of handler.
The handler is defined as a type of self_handler(wParam)

— ARGLINT

Same as ARGINT

— ARGINTINT

lParam and wParam are for the argument.
The handler is defined as a type of self_handler(wParam,lParam)

— ARGINTINTINT

lParam and wParam are for the arguments, and lParam will be devided into 
two integers of lo-word of lParam and hi-word of lParam.
The handler is defined as a type of self_handler(wParam,LO_lParam,HI_lParam)

— ARGLINTINT

lParam is for the argument, and lParam will be devided into 
two integers of lo-word of lParam and hi-word of lParam.
The handler is defined as a type of self_handler(LO_lParam,HI_lParam)

— ARGINTSTRUCT

wParam and structured lParam is for the arguments.
The handler is defined as a type of self_handler(wParam, ...*struct...)

— ARGINTSINTSINT

Almost same as ARGINTINTINT.
But that two lParam integers are dealed as signed integers.

— ARGPASS

The argument is an instance of SWin::MSG.
The handler is define as a type of self_handler(msg).
0
ARGINT =

arg none

1
ARGSTRUCT =

arg lParam

2
ARGSTRING =

arg lParam as struct

3
ARGWINT =

arg lParam as char*

8
ARGLINT =

arg wParam

9
ARGINTINT =

arg lParam

10
ARGINTINTINT =

arg wParam,lParam

11
ARGLINTINT =

arg wParam,LO(lParam),HI(lParam)

12
ARGINTSTRUCT =

arg LO(lParam),HI(lParam)

13
ARGINTSINTSINT =

arg wParam, lParam as struct

14
ARGPASS =

arg wParam,SignedLO(lParam),SignedHI(lParam)

16