Click to See Complete Forum and Search --> : WM_INITDIALOG called twice?


Kyle Gibson
June 12th, 2003, 09:14 PM
There's no other way to explain what is occurring. According to the results, the WM_INITDIALOG message is being sent twice.

The fix is easy, a simple global boolean value. The question I want answered is "Why is it sent twice?" I'm only calling DialogBox() once, and if I put a message box before I call DialogBox, the box itself only appears once. But inside the WM_INITDIALOG case, it happens twice.

Anyone got any ideas?

mdmd
June 12th, 2003, 10:52 PM
Not without seeing; maybe you're forgetting break; after the
previous case label and a different message is falling through ?

Kyle Gibson
June 13th, 2003, 03:24 AM
Sigh. That was the problem. :rolleyes:

Thanks!