I am trying to make a program where an image would disappear when a certain a button called hide in the application is pressed.
I know in Windows form application it would be something like this:
pictureBox1->Visible=true/false;
But that code wouldn't work in MFC
My code in MFC is
Cstatic pictureBox1 =(Cstatic)Getdialogitem(IDC_IMAGE1);
pictureBox1->Visible=false;