Hi
I was just playing around and wanted to see if I could get Winblitz3d and Dreamotion3d working together. I think I'm not getting the right window handle.
Any help or pointers would be appreciated.
Cheers
GrumpyOldMan
I was just playing around and wanted to see if I could get Winblitz3d and Dreamotion3d working together. I think I'm not getting the right window handle.
;This sets up the Dreamotion3d window, seems to be ok Include "includes\DX9.bb" Include "WB3DStyles.bb" DXGraphics3D(WB3D_GadgetWidth(WB3D_DeskTop()),WB3D_GadgetHeight(WB3D_DeskTop()),32,0) font = DXLoadFont( "Tahoma",9 , 1) DXTextColor(font, 255,0,0,255) DXApptitle("Testing") ;Try to find out values here DebugLog "Standard Blitz Window return ="+SystemProperty("AppHwnd") DebugLog "API Findwindow ="+API_FindWindow("","Testing") ;This doesn't seem to work at all. I saw in the WinBlitz decls file ;the command was API_FindWindow%(class%,title$):"FindWindowA"" ;I tried altering this to ;API_FindWindow%(class$,title$):"FindWindowA" ;Didn't help though ;findclass ("Testing") DXShowPointer() DebugLog "API Window from point ="+api_WindowFromPoint(DXMouseX(),DXMouseY()) ;the problem seems to start with the WB3D_InitializeGUI command ;and incorrect window handles Global RuntimeWindow_hWnd = WB3D_InitializeGUI(SystemProperty("AppHwnd"),0,0,WB3D_GadgetWidth(WB3D_DeskTop()),WB3D_GadgetHeight(WB3D_DeskTop())) ;Global RuntimeWindow_hWnd = WB3D_InitializeGUI(api_WindowFromPoint(DXMouseX(),DXMouseY()),0,0,WB3D_GadgetWidth(WB3D_DeskTop()),WB3D_GadgetHeight(WB3D_DeskTop())) WB3D_FlushEvents Repeat DXBeginScene() DXRenderWorld() ; draw FPS DXText(font, 10, 15, "FPS : "+DXFPS()) DXEndScene() Until DXKeyHit(1) Function FindClass$(t1$) b = API_FindWindow("", t1$) bbank = CreateBank(256) length = api_GetClassName( b, bbank, 255 ) DebugLog length For i = 0 To length - 1 class1$ = class1$ + Chr$(PeekByte(bbank, i)) ;DebugLog Chr$(PeekByte(bbank, i)) Next FreeBank bbank DebugLog("Class = " + class1$) Return class1$ End Function
Any help or pointers would be appreciated.
Cheers
GrumpyOldMan