Jump to content
  • Advertisement
Sign in to follow this  
MattWinters

Windows Dialog Box Problem

This topic is 2596 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, SpaceGhost (from the chat) here. Im trying to make the Add Order button that you can see in the screen shot open a dialogbox, but the dialogbox appears to be going crazy.

The (i think) relevant code is here http://codepad.org/BLWsm9UG

And here is an image of what it looks like (changed from the code slightly so that the dialogbox leaves the main window for clarity).

http://imageshack.us/f/829/screenah.jpg/

is the screen shot.

Thanks for the help!

Share this post


Link to post
Share on other sites
Advertisement
Your AddOrder proc is always returning true. You should only return true, if you fully(!) handled a message, and false for everything else.

If you return true, Windows thinks the message is fully handled and doesn't do any default behaviour.

Share this post


Link to post
Share on other sites

Your AddOrder proc is always returning true. You should only return true, if you fully(!) handled a message, and false for everything else.

If you return true, Windows thinks the message is fully handled and doesn't do any default behaviour.


thank you so much! I just added a default case of return false to the message switch and it works like a charm! Is the button that looks like a facebook like how I upvote you? Dont wanna start making just appear on your facebook wall.

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!