|
MKI_HOOKKEY_PROC (Callback) |
www.CAD6.com |
C++ Syntaxtypedef void (*MKI_HOOKKEY_PROC)( __int32 f_nWindowNum, UINT f_unMessage, __int32 f_nKey, __int32 f_nData );
This callback procedure is called once each time a key event occurs.
Parametersf_nWindowNum [__int32] Zero-based index of the drawing window that is responsible for the event. Valid range: 0 <= Value < MKI_WINDOW_MAX (standard windows) or Value = MKI_WINDOW_VIEW (view window). f_unMessage [UINT] Type of key event that occurred. Possible values are: WM_KEYDOWN WM_KEYUP For a description of these standard key events, refer to the windows SDK documentation. f_nKey [__int32] Virtual key code of the key that has been pressed or released. f_nData [__int32] Specifies the repeat count, scan code, extended-key flag, context code, previous key-state flag, and transition-state flag, as shown in the following table:
CommentA hook on key events can be established and cancelled using the procedures MKI_HookKeyStart and MKI_HookKeyEnd.
|
CAD6interface 2026.0 - Copyright 2026 Malz++Kassner® GmbH