Matthew Gates: Using your method, the App can still be closed via sending the WM_CLOSE message, and DestroyWindow function.