bool LoadCtrl::OnCommand (int ctrlId, int notifyCode) throw (Win::Exception) { if (ctrlId == IDOK || ctrlId == IDC_LIST && notifyCode == LBN_DBLCLK) { if (_listBox.GetSelectedPath (GetWindow (), GetBuffer (), GetBufLen ())) { // directory selected ChangeDirectory (); } else if (_listBox.IsSelection ()) EndOk (); else EndCancel (); return true; } else if (ctrlId == IDCANCEL) { EndCancel (); return true; } return false; }
bool Progress::MultiCtrlHandler::OnCancel () { _overall.Cancel (); EndCancel (); return true; }
bool Progress::SingleCtrlHandler::OnCancel () { _channel.Cancel (); EndCancel (); return true; }