ocean001 0 Newbie Poster

hi guys,

i creating mobile interface using visual c++ 2005. After i creating few dialog, and it works. after i implementing into mobile device, then i realize that when i click my OK button top-right corner
it does not close the program immediately, i have to press few time in order to close it. Can anyone told me the command to end the dialog.