MFC Modal dialog ?!?!?!?!!?
am un dialog modal, ca sa se inchida tre de apasat de 2 ori pe OKwtf?[[code|c++]]void UploadDocument::OnBnClickedOk(){ HTREEITEM hItem; // TODO: Add your control notification handler code here hItem = m_TreeCtrl.GetSelectedItem(); m_SelectedItem = m_TreeCtrl.GetItemText(hItem); OnOK();}[[endcode]]