Hi,
Can anyone know How can i open two SDL windows from MFC program?
thanks
Hi,
Can anyone know How can i open two SDL windows from MFC program?
thanks
---- shalom shushan <shalom.shushan at gmail.com> wrote:
=============
Hi,
Can anyone know How can i open two SDL windows from MFC program?
thanks
Yeah. You’re basically mixing two concepts. And you can mix them, but you don’t have to.
If you want pure SDL windows, call SDL_CreateWindow. (I assume you’re using SDL 1.3, since you can’t do multiple windows in 1.2.) If you want to create MFC windows and make SDL work in them, then create the window, call SDL_CreateWindowFrom and pass the HWND handle of the window as the data parameter. If you want to embed a SDL “window” inside an MFC window, then create an MFC control whose ClientRect covers the area you want to use, and call SDL_CreateWindowFrom with its HWND handle.>----- Original Message ----
From: “necronology at cox.net”
Subject: Re: [SDL] open two SDL windows from MFC programHiyya, You do it like any of the examples at the SDL site but they are just calling SDL to do it. There is no need to call
MFC but you can #include if you want something or put SDL in an existing pogram that uses MFC functions. Am I helping?---- shalom shushan <shalom.shushan at gmail.com> wrote:
=============
Hi,
Can anyone know How can i open two SDL windows from MFC program?thanks