Jump to content

Sign in to follow this  
ErnieAlston

Using DialogBox in FSX

Recommended Posts

Hi,I've been trying to create a Dialog box in FSX using the DialogBox API call and with the resource for the dialog box in a resource only dll.Creating the box works fine and it displays correctly but... I can't communicate with the dialogbox ! I receive the WM_INITIALZE message and from then on the WM_REDRAW message but the title bar of the dialog stays in the "unfocussed" state and when I try to click the dialog (or the FSX window for that matter) I get the typical low xylophone "bong" sound. I also tried setting DialogMode via SimConnect but except for the background of the main FSX window turning black, this has no effect on the behaviour of the dialog box.Has anyone succeeded in working with DialogBox in FSX so far ? Any tricks I may have missed ?Bj

Share this post


Link to post
Share on other sites

It may be that the dialogbox is opening behind the FS window or on the desktop,that's why you're getting those beeps whenever you click.You need to draw that dialog window in the video mode FS is in.DirectDraw::FlipToGDISurface is probably what you need to use.There's a lot more to it than that, not trivial stuff, more trouble than its worth if you ask me.However the 'FullScreenDialog' example in the DirectX SDK provides the details and code for how to do this.Regards.Ernie.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...