コード例 #1
0
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;
}
コード例 #2
0
bool Progress::MultiCtrlHandler::OnCancel () 
{
	_overall.Cancel ();
	EndCancel ();
	return true;
}
コード例 #3
0
ファイル: ProgressDialog.cpp プロジェクト: dbremner/WinLib
bool Progress::SingleCtrlHandler::OnCancel () 
{
	_channel.Cancel ();
	EndCancel ();
	return true;
}