Dear Uwe, Your sample works fine, but I had referred to BUTTONBMP, not BTNBMP. Please take a look at fallowing code. If a BUTTONBMP has the focus and we press ESCAPE, the dialog closes, but the MDICHILD still open. I think this behavior comes from ...