Files
docs/developers/plugins/Callbacks/plugcbwineventglobal.rst

16 lines
579 B
ReStructuredText

PLUG_CB_WINEVENTGLOBAL
======================
Called before TranslateMessage and DispatchMessage Windows functions (PreTranslateMessage).
Avoid calling user32 functions without precautions here, there will be a recursive call if you fail to take countermeasures.
This function is global, so it also captures hotkeys (see Qt documentation). In Qt5 this function is almost never called, use :doc:`plugcbwinevent` instead.
::
struct PLUG_CB_WINEVENTGLOBAL
{
MSG* message;
bool retval; //only set this to true if you want Qt to ignore the event.
};