hello everyone.
i am making a program which has multiple windows.
how do I program that when one window pops-up, the other closes?
i am using Microsoft visual studio 2010, in a Win32 application.
i am not using a windows form.

Recommended Answers

All 2 Replies

DestroyWindow(int windowID)

that command destroys both windows, only one needs to be destroyed. And its a parent window which needs to be destroyed.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.