![]() |

| Function |
Declared in: NiButtonEvents.h |
Declaration
void OnKeyUp(
short FAR* KeyCode,
short Shift);
Description
Generated when you release a key while the control has the input focus.
// Your event code here. } }
Parameters
short FAR* KeyCode
short Shift
Specifies the virtual-key code of the given key.
Contains the state of the SHIFT, CTRL, and ALT keys, which can be any combination of the CNiButton::ShiftKeys enumeration values.
- CNiButton::ShiftKey - the user pressed the SHIFT key.
- CNiButton::CtrlKey - the user pressed the CTRL key.
- CNiButton::AltKey - the user pressed the ALT key.
See Also
Example
void OnKeyUp(short FAR* KeyCode, short Shift) {
// Check for the Alt-Shift-D key.
if ((*KeyCode == 68) && (Shift == CNiButton::ShiftKey | CNiButton::AltKey)) {

