Converts modifier keys in the LParam for a mouse message to a TShiftState value.
Source position: forms.pp line 1939
function KeysToShiftState( |
Keys: PtrUInt |
):TShiftState; |
Keys |
|
Pointer to an unsigned Integer with the mouse key states examined in the routine. |
Set type with the TShiftStateEnum values representing the specified Keys.
KeysToShiftState returns a TShiftState type with the TShiftStateEnum values needed to represent the mouse key states in the Keys argument. KeysToShiftState ANDs the value in Keys with RTL mouse key constants to determine the values in the set, including:
GetKeyState is also called, and the following virtual key codes are processed for the return value:
KeysToShiftState is used to translate the key values for mouse messages in methods like DoMouseDown, DoMouseUp, and WMMouseMove in TControl.
|
Converts a shift state into a key state value compatible with the key state of a Windows API LParam. |
|
|
Converts modifier keys from the LParam in a keyboard message (WM_KEYUP for example) to a TShiftState value. |
|
TShiftState |
||
|
||
|
||
|
||
|
||
|
||
|
||
|
CT Web help |
CodeTyphon Studio |