Using a single window in two blitzmax apps?

BlitzMax Forums/MaxGUI Module/Using a single window in two blitzmax apps?

Damien Sturdy(Posted 2009) [#1]
Hi All,

I'm trying to allow a game to render in an editor window. The idea is that the editor can call the game with a level file and it'll render in the same window as the editor (on a seperate canvas and hwnd to the editor obviously, but in the same MaxGUI Window)

Now, i've got this working mostly, but my problem is that as soon as i click on the window after the game starts the window goes blank.

I assume this is an event thing, so what would i need to do to get this working? I have to be honest, I don't even know where to start. Any help would be great! :-D


[edit]

In fact i'd prefer to do this without maxgui if possible. i only used maxgui for its ability to easily create two hwnds for a single window.

Generally i'd like to know how you would "attach" or "import" a pre-existing window to work with max.