Wiki Page Content

DRAFT

SDL_SetWindowsMessageHook

Use this function to set a function that is called for every windows message, before TranslateMessage().

Syntax

void SDL_SetWindowsMessageHook(SDL_WindowsMessageHook callback,
                               void*                  userdata)

Function Parameters

callback

the function to call for every message; see Remarks for details

userdata

a pointer that is passed to callback

Code Examples

You can add your code example here

Remarks

This function is available on Microsoft Windows.

The function prototype for callback is:

void SDL_WindowsMessageHook(void*        userdata,
                            void*        hWnd,
                            unsigned int message,
                            Uint64       wParam,
                            Sint64       lParam)
  • where its parameter is:

Version

This function is available since SDL 2.0.4.


CategoryAPI, CategorySystem

None: SDL_SetWindowsMessageHook (last edited 2015-05-17 21:25:05 by PhilippWiesemann)

Feedback
Please include your contact information if you'd like to receive a reply.
Submit