Hi,

I am now working with MFC and I have a main window, but I want to create a button, and when clicked, a new window to apppear, and also I want to draw in the new window. I created the button, and when cilcked is drawing a rectangle..it was a example so I know how new button works, but I do not know how to open a new window.
can anyone help me?

the link above is helpful but still couldn't successful run it after building.

the link above is helpful but still couldn't successful run it after building.

I am working on a similar problem and yet to find a way out.Please do let me know if you have figured out a way to create a new window where you can draw/plot when you click on a button

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.