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!
Windows Dialog Box Problem
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.
If you return true, Windows thinks the message is fully handled and doesn't do any default behaviour.
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.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement