When quitting a window "Tools", I ask the user if he's sure to do it. If he is, no problem, but if he is not, I cannot go back to my window. I gess it is a handle problem, but I don't know how to solve it. Any hints?
switch(MessageBox( NULL, "Are you sure you wanna quit?", "Quit", MB_ICONQUESTION | MB_YESNO | MB_DEFBUTTON2))
{
case IDYES :
{
delete interface;
mainWindow->Show(); // *
}
case IDNO:
{
Tools->Show(); //**
}
}
* here it seems logical to introduce a Tools->Close() or a this->Close(), but it doesn't work
** here i have my problem, i cannot go back to the previous window!!!!