October 28, 200619 yr Hi, I'd like to find out what is the recommended way to create non-modal FSX child windows like a side running popup window for a radar screen. Within Simconnect, I did not find window management functions. If you create the windows yourself (Windows API) from a SimConnect client application (as I do in FSXPilot), switching to this window will stop the FSX sound, which is disturbing. If you create the child window using the FSX main window as a parent, switching to (selecting on desktop) the newly created child window will work, but is very slow. Needs about .5 to 1 second to actually do the switch. Would be great if anybody could provide some advice concerning clean creation of FSX child windows ...Kind regardsrudolf
November 20, 200619 yr There are some functions in the fsui.dll to do this, but the one issue is that you must be running in the FSX process space. The reason for this is not FSX, but Windows. A child window can only be created in the same process space as its parent, and only becomes a problem when you run in full screen mode. Why? Because in full screen mode, directX runs as the top level window, and the only windows that will show in front of it are its child windows.To make a long story short, you must create windows within FSX DLLs such as modules or gauges.I'm struggling a bit with this myself as I'm trying to coerce FSX to load mixed-mode DLLs so the full WindowsForms and GDI+ is available from the CLR. Thus far having a few issues unless I stick to unmanaged C++. If only there was unmanaged C#....Etienne
Create an account or sign in to comment