DirectX application minimizes itself when it shouldn't

Printable View