SDL window size changed in Win32

Dear all:
I’m new to SDL programming.Recently I use SDL_1.2.7
to develop a video player in Win32 Dialog-based
Application. I hope the SDL window becoming a Dialog’s
child window,and it can chage the window size freely
according dialog window size.
I use SDL_SetVideoMode to set SDL-window size.When
SDL main window is a popup window,it works well.But
when I set the SDL window as the child window.of
dialog.The SDL_SetVideoMode seems only to change the
Video content,the window size keep unchanged.
For example,the original size of video and window is
320x240,when I SDL_SetVideoMode(640,480,…),the video
size is 640x480 now,but the window size is still
320x240,and show a 1/4 left-top video.
What am I missing?
Any information or hint are very appreciated.

Renzhong xiao
??2005-06-11__________________________________
Discover Yahoo!
Use Yahoo! to plan a weekend, have fun online and more. Check it out!
http://discover.yahoo.com/

Dear all:
I’m new to SDL programming.Recently I use SDL_1.2.7
to develop a video player in Win32 Dialog-based
Application. I hope the SDL window becoming a Dialog’s
child window,and it can chage the window size freely
according dialog window size.
I use SDL_SetVideoMode to set SDL-window size.When
SDL main window is a popup window,it works well.But
when I set the SDL window as the child window.of
dialog.The SDL_SetVideoMode seems only to change the
Video content,the window size keep unchanged.
For example,the original size of video and window is
320x240,when I SDL_SetVideoMode(640,480,…),the video
size is 640x480 now,but the window size is still
320x240,and show a 1/4 left-top video.

this would indicate to me that you need to resize the parent yourself.
Child windows are always clipped by their parents. (i don’t know the
win32 api to do this, ask msdn)On 6/11/05, Renzhong Xiao <renzhong_xiao at yahoo.com> wrote:

    What am I missing?
    Any information or hint are very appreciated.

Renzhong xiao
??2005-06-11


Discover Yahoo!
Use Yahoo! to plan a weekend, have fun online and more. Check it out!
http://discover.yahoo.com/


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

— David Sharp wrote:

Dear all:
I’m new to SDL programming.Recently I use
SDL_1.2.7
to develop a video player in Win32 Dialog-based
Application. I hope the SDL window becoming a
Dialog’s
child window,and it can chage the window size
freely
according dialog window size.
I use SDL_SetVideoMode to set SDL-window
size.When
SDL main window is a popup window,it works
well.But
when I set the SDL window as the child window.of
dialog.The SDL_SetVideoMode seems only to change
the
Video content,the window size keep unchanged.
For example,the original size of video and
window is
320x240,when I SDL_SetVideoMode(640,480,…),the
video
size is 640x480 now,but the window size is still
320x240,and show a 1/4 left-top video.

this would indicate to me that you need to resize
the parent yourself.
Thanks for your response.But my parent window is
always maximized.So I don’t understand why need to
resize the parent.
BTW,whatever size I set using SDL_SetVideoMode,the
size of SDL video window (when embeded in dialog) is
always 320x240 (view by spy++).
thanks.> On 6/11/05, Renzhong Xiao <@Renzhong_Xiao> wrote:
Child windows are always clipped by their parents.
(i don’t know the
win32 api to do this, ask msdn)

    What am I missing?
    Any information or hint are very

appreciated.

Renzhong xiao
??2005-06-11


Discover Yahoo!
Use Yahoo! to plan a weekend, have fun online and
more. Check it out!
http://discover.yahoo.com/


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl


Discover Yahoo!
Have fun online with music videos, cool games, IM and more. Check it out!
http://discover.yahoo.com/online.html