I've never used MFC but possible the ShowWindow() API would work. But you'd need to have the hWnd of your window for that to work.

Instead of using int main(), you might have to use int WINAPI WinMain(). Not sure though.