Jump to content
  • Advertisement
Sign in to follow this  
Melanikus

Question on Win32

This topic is 3299 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

Hey, I'm sorry if this is not the right place, but ppl who use DirectX usually have some good knowledge on Win32. I'm building this very very large interactive app with DirectX and I'm getting sick of getting all my input in the keyboard, I wanted to use dialog boxes for everything =p I looked some of the "about box" initialization on a default win32 program on visual studio, and some other stuff on old directx examples (DirectInput examples) then fitted it to my needs, so I can have radio buttons drop down menus and everything easily by making the Window's dialog callback and processing messages. The first thing I noticed is that my interactive app in the main window stops even after I close the dialog, I didn't get why exactly so I restarted the timer function (SetTimer) and it started working again (it wouldn't leave the main WindowProc, resetting the time fixed that...) even so... while the dialog box is there, the main app's window doesn't run. The thing is, I want my app to keep running while I this dialog boxes are focused! I tried some cheating like reset the timer in a WM_MOUSEHOVER but it did not work (of course... :p) Anyone knows how I can do this properly? notice that I'm simply defining a callback and calling a DialogBox function. Does windows has some thread system to do that? Thanks in advance

Share this post


Link to post
Share on other sites
Advertisement
Argh... ok never mind, I was building Modal dialog boxes instead of Modeless dialog boxes, I got it now using CreateDialog (instead of DialogBox) , sorry, and thanks to anyone who took the time to read

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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!