Jump to content
  • Advertisement
Sign in to follow this  

Modeless dialogs with glut

This topic is 5466 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I have an app built with world tool kit (which is built on top of glut), which leaves me without access to the message loop. Does this exclude me from being able to get default processing in dialog boxes (like tabbing through windows and hitting enter to press the default button) since I can't use IsDialogMessage? Anyways, it's just a simple dialog with an edit box and a single button. I set focus on the edit control when the dialog is created so the user can type in a value, but now I don't know how to get the button press. I tried checking for WM_KEYDOWN and then send IDOK but it seems my dialog doesn't receive any. Any suggestions on how to do either of these things? I'm obviously not very experienced with the windows api so nothing is too obvious for mention.

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!