Pressing a button works sometimes
I have a simple dialog program with a couple of buttons on it and most of the times the buttons on it work, but not always.
If i press on the exit button i always can see the button going down and when i release the mouse button it commes up again. So graphicaly the button always works as expected. The problem is that the program doesnt always exit. If it doesnt exit it doesnt matter how often i click on it. But when i move the window only a pixel it works again....... Has anybody got an idea what i can do to find the cause of this problem? This problem doesn't happen very often, but the problem does happen. I have tried to "force" this to happen but it only happens when i least expect it :D
To avoid confusion... im talking about my own custom exit button... not that little x at the top right corner!!
Im using devcpp with winxp.