show dialog result?



hi, im a relative noob to C++ so im wondering how u can tell if the user
pushed the "ok" button on a show dialog, like the equivilent of VB.net's "if
showdialog = dialogresult.ok then

heres the code i have to show a savefiledialog

private: System::Void btnsave_Click(System::Object * sender,
System::EventArgs * e)
{
this ->saveFileDialog1->set_Filter("TXT *.txt|(*.txt)|Doc
*.doc|(*.doc)");
this ->saveFileDialog1->set_FilterIndex(0);
this->saveFileDialog1->ShowDialog();
}

};

--
-iwdu15
.