Windows Dialog Box Problem

Started by
2 comments, last by Endurion 12 years, 5 months ago
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!
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.

Fruny: Ftagn! Ia! Ia! std::time_put_byname! Mglui naflftagn std::codecvt eY'ha-nthlei!,char,mbstate_t>


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.
I think so, I'm not on Facebook anyway :)

Fruny: Ftagn! Ia! Ia! std::time_put_byname! Mglui naflftagn std::codecvt eY'ha-nthlei!,char,mbstate_t>

This topic is closed to new replies.

Advertisement