• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

FSX Set Form as child window

n4gix

Resource contributor
Messages
11,674
Country
unitedstates
I cannot tell you how precisely, but search for methods to create an "in-process" .dll, that is one that may be added to the top menu bar and are taking advantage of the internal FSX rendering system.
 

mgh

Messages
1,413
Country
unitedkingdom
The only approach I can think of is to "hook" into the FSX rendering engine and change the DirectX backbuffer directly, but I have no idea what that would entail.

Other posters suggested SimConnect_SetSystemState() but the SDK states:

The dwInteger parameter should be set to 1 to turn Dialog mode on, or 0 to turn it off. Dialog mode enables the display of dialogs when the simulation is running in Full Screen mode. When in dialog mode the 3D area of the screen will turn black, and will only revert to the simulation view when Dialog mode is turned off (not automatically when the dialog is closed).

I've written an out-of-process SimConnect applications that will write a window above a windowed FSX window but that disappears on switching to full-screen. I've also written similar FSUIPC applications that do the same thing.

EDIT

This thread seems helpful

http://www.fsdeveloper.com/forum/th...aying-bitmaps-or-inserting-3d-objects.312266/
 
Last edited:

WebSimConnect

Resource contributor
Messages
154
interesting topic, addressed several times, though I have not seen yet a working solution.

From my experiments some years ago, I managed to create Child windows that were visible in full screen mode. They had to have special window styles applied. As far as I remember I used the same style as un-docked gauge windows. You can easily get it using Spy program from Visual Studio. The problem I faced was they happened to "disappear" after switching from full screen to window mode and vice-versa and they were leaving ugly trace when moving a window. At the end I gave up and moved into gauge windows and forgot the whole idea. Prepar3D 2.x solves the problem with their new SDK.

I have seen Christoph's VATConnect project mentioned by mgh, downloaded it and it simply did not work. I dunno why, probably due to changes in d3d9_*dll. Hooking is always a tricky business. Anyway, he did not finish his project, still it is interesting to see some of his ideas.

Marcin
 

mgh

Messages
1,413
Country
unitedkingdom
I downloaded the project didn't bother running it because I don't believe it's complete. It seems to describe the principles involved, but it doesn't explain how to modify the backbuffer to overlay another image onto FSX.
 

WebSimConnect

Resource contributor
Messages
154
I don't believe it's complete.,

it is not, but the project compiles and runs, however the hooked Present function is never called though it seems to be correctly initiated. I tested on Win 8.1 though it might work on 7 or XP ... Anyway efratomer might give it a try, however bear in mind, it will not work with P3D as the solution is tailored for DX9 only ...
 

mgh

Messages
1,413
Country
unitedkingdom
Being pedantic it might work with P3Dv1.n with DirectX 9.0c.

Also FSX-SE has been re-compliled so it would also be unlikely to work either.
 
Top