[SDL] how to obtain the window handle of a window
paul at theV.net
paul at theV.net
Wed Jun 12 20:57:01 PDT 2002
Yes, you can obtain it this way:
int r;
SDL_SysWMinfo info;
HWND hWnd;
SDL_VERSION(&(info.version));
r = SDL_GetWMInfo(&info);
if (r < 0) {
fprintf(stderr, "%s", SDL_GetError());
return -1;
}
hWnd = info.window;
I'd agree that SDL shall be cross-platform, but sometimes you just
need the trick :(
Regards,
.paul.
On Thu, Jun 13, 2002 at 12:38:51AM +0200, Romi Kuntsman wrote:
> Huib-Jan Imbens wrote:
>
> >I would like the window of my Win32 application to have a fancy shape. The
> >SetWindowRegion API allows me to do that, but I need the window handle of
> >the window to be able to call it. Is there any way to obtain this window
> >handle?
> >
> >Internally SDL uses SDL_Window but I have not been able to find any way to
> >get at it.
> >
> >Huib-Jan
> >
> >
>
> I thought that the whole point is that it's cross-platform, and
> therefore there's no access to platform-specific stuff...
>
> RK.
>
>
>
> _______________________________________________
> SDL mailing list
> SDL at libsdl.org
> http://www.libsdl.org/mailman/listinfo/sdl
More information about the SDL
mailing list