make a fusion between B3D and B+

BlitzPlus Forums/BlitzPlus Programming/make a fusion between B3D and B+

Red(Posted 2004) [#1]
http://www.3dgametool.com/Eddy/B3D_In_B+.zip (version 2)
Launch Gui.exe





gburgess(Posted 2004) [#2]
File's empty, Ed. File's empty.


GfK(Posted 2004) [#3]
He's right, you know. Empty.


Red(Posted 2004) [#4]
[download link fixed]

Oup !! You can download now. :)


gburgess(Posted 2004) [#5]
Bless you.

Hmmm, quite interesting. Blitz3D app seems to stop when the pointer leaves the canvas. Is that intentional?


Red(Posted 2004) [#6]
Is that intentional?

No.

I've noticed this strange behaviour.


Red(Posted 2004) [#7]
I' fixed this problem but now when you click in B3D app the B+ GUi losts the focus.


TeraBit(Posted 2004) [#8]
That's kind of cool! How would you communicate between the processes? Some kind of Shared memory sounds sensible.


Red(Posted 2004) [#9]
But there's no communication.
There's two autonomous app.

For the moment I can't send any value from gadget to my 3D app.


JoshK(Posted 2004) [#10]
You might be able to use network commands to share data.


JoshK(Posted 2004) [#11]
Hey, what did you do to parent the one window to the other? I am interested in using MDI-like windows like that.


Eikon(Posted 2004) [#12]
My guess would be the SetParent API. Preserving styles between apps with SetWindowLong is what you have to worry about. After its parented a call to SetWindowPos with hwnd_TOPMOST will make it visible.


Red(Posted 2004) [#13]
>My guess would be the SetParent API.
It is the idea.

>Preserving styles between apps with SetWindowLong is what you have to worry about.
There's a focus problem when I use child style
The 3D app is locked.

>After its parented a call to SetWindowPos with hwnd_TOPMOST will make it visible.
I don't know if it is usefull
I use 'movewindow'.


Red(Posted 2004) [#14]
Perhaps a callback problem. :/


JoshK(Posted 2004) [#15]
Here's what I tried:

win=CreateWindow("window",ClientWidth(Desktop()),ClientHeight(Desktop()),100,100,0)
hWND=QueryObject(win,1)
style=GetWindowLong(hWND,GWL_STYLE)
SetWindowLong hWND,GWL_STYLE,style+WS_CLIPCHILDREN

And then used SetParent to parent another window hwnd to this, but it doesn't clip the child. Any advice? Thanks.


Red(Posted 2004) [#16]
WS_CHILD


JoshK(Posted 2004) [#17]
For the child window, you mean? If so, I tried that, to no avail.