[SDL] Passing existing hwnd handle (windows screensaver)

Brian Barrett brian.ripoff at gmail.com
Thu Sep 1 12:29:54 PDT 2005

first of all

#include SDL_syswm.h

then in your code:

SDL_SysWMInfo info;
SDL_GetWMInfo(&info) // fill the structure

on WIN32 this struct is

typedef struct {
SDL_version version;
HWND window; /* The Win32 display window */
HGLRC hglrc; /* The OpenGL context, if any */
} SDL_SysWMinfo;

as to what you'll do with it i don't know, but SDL does use it.

hope this helps
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20050901/ce1de102/attachment-0008.htm>

More information about the SDL mailing list