Moving the sdl window

Hi all

I want to be able to move the SDL window under Windows

I have searched a bit on google, and found some solutions for X, but none i could use.

It seems it would be enough to get the HWND with SDL_GetWMInfo() and use MoveWindow() from the WinAPI, but nothing seems to happen!

Any ideas anyone?

Thomas Skovsende

Hello!

It seems it would be enough to get the HWND with SDL_GetWMInfo()
and use MoveWindow() from the WinAPI, but nothing seems to happen!

This works for me, see “Window positioning for MS windows” in this list.
Perhaps you need an additional UpdateRect, Flip or something?

Ciao,
Eike

Hi

Well i use:

MoveWindow(wminfo.window, 0, 0, 800, 600, true);

And does a update after that…

And i havent been able to find any previous thread on positioning in the
listarchive…

Seahawk> ----- Original Message -----

It seems it would be enough to get the HWND with SDL_GetWMInfo()
and use MoveWindow() from the WinAPI, but nothing seems to happen!
This works for me, see “Window positioning for MS windows” in this list.
Perhaps you need an additional UpdateRect, Flip or something?