i am rather new to visual C++ and i want to know how i would make one button act as two
(i.e button "open" then would carry out the operation then switch to second function "close".
Printable View
i am rather new to visual C++ and i want to know how i would make one button act as two
(i.e button "open" then would carry out the operation then switch to second function "close".
hi
u can make it using toggle effect
use flag or static int i = 0;
if(i % 2== 0)
{
code for open
i++;
}
else
{
code for close
i++;
}
so it will alternately open and close the application.