Exemple #1
0
void CWallDirListItem::On_FileAdded(const CString &strFileName)
{
	if (!::g_pWallThreadFindPic->IsMatchSupport(strFileName))
		return;

	m_saPicPath.Add(strFileName);
	SetItemFileFindNum(m_saPicPath.GetCount());
	if (IsItemEnable())
		::g_pWallEnablePicList->ModifyCount(1);
}
Exemple #2
0
void CWallDirListItem::Destroy()
{
	if (!m_bInit)
		return;

	if (IsItemEnable() && !m_bOnExit)
		::g_pWallEnablePicList->RemoveEnableItem(this);

	m_bInit = false;
}
Exemple #3
0
void CWallDirListItem::UpdateItemFileFindNum()
{
	if (m_mux.Lock()) {
		SetItemFileFindNum(-1);
		if (IsItemEnable())
			::g_pWallEnablePicList->RemoveEnableItem(this);
		SetOnFindPic();
		::g_pWallThreadFindPic->AddItem(this);

		m_mux.Unlock();
	}
}
void CBeikeSafeInstallKavEngineDlg::OnBkBtnCancel()
{
    if (IsItemEnable(IDC_BTN_INSAVE_CANCEL) && IsItemVisible(IDC_BTN_INSAVE_CANCEL, TRUE))
    {
        m_bCancel = TRUE;

        EnableItem(IDC_BTN_INSAVE_CANCEL, FALSE);
    }
    else
    {
        EndDialog(IDOK);
    }
}
Exemple #5
0
void CWallDirListItem::Destroy()
{
	if (!m_bInit)
		return;

	if (!m_bOnExit) {
		if (IsOnFindPic())
			g_pWallThreadFindPic->RemoveItem(this);

		if (IsItemEnable())
			g_pWallEnablePicList->RemoveEnableItem(this);
	}

	m_bInit = false;
}
Exemple #6
0
void CWallDirListItem::On_FileRemoved(const CString &strFileName)
{
	if (!::g_pWallThreadFindPic->IsMatchSupport(strFileName))
		return;

	int i, iCount = m_saPicPath.GetCount();
	for (i=0 ; i<iCount ; i++) {
		if (m_saPicPath[i] == strFileName) {
			m_saPicPath.RemoveAt(i);
			SetItemFileFindNum(m_saPicPath.GetCount());
			if (IsItemEnable())
				::g_pWallEnablePicList->ModifyCount(-1);
			return;
		}
	}
}