以下是Delphi源代码:
//<B>windows.pas</B>
const
...
{$EXTERNALSYM VK_RETURN}
<B>VK_RETURN = 13;</B>
...
以下是Win32API Help关于<B>Virtual-Key Codes Described:</B>
The wParam parameter of a keystroke message contains
the virtual-key code of the key that was pressed or released.
A window procedure processes or ignores a keystroke message,
depending on the value of the virtual-key code.
参见WM_KeyDown、WM_KeyUp消息
---------------------------------------------------------------
另外,Delphi中OnKeyDown、OnKeyUp事件请参见WM_KeyDown、WM_KeyUp消息
OnKeyPress事件请参见WM_Char消息