void CSoundEventsPage::ToggleItem(HTREEITEM hItem) { SoundEvent e = SoundEvent(m_wndTree.GetItemData(hItem)); if(m_wndTree.GetCheck(hItem)) m_uSoundEvents &= ~e; else { CString szFilePath = GetEventFilePath(m_SoundFiles[e]); if(!szFilePath.IsEmpty()) { m_uSoundEvents |= e; m_SoundFiles[e] = szFilePath; } else m_wndTree.SetCheck(hItem, FALSE); } SetTimer(1, 0, NULL); }
void CSoundEventsPage::OnBnClickedButtonEventsQuestionmode() { CString szFilePath = GetEventFilePath(); if(szFilePath.GetLength()) m_wndQuestionMode.SetWindowText(szFilePath); }
void CSoundEventsPage::OnBnClickedButtonEventsDesktopaccessreq() { CString szFilePath = GetEventFilePath(); if(szFilePath.GetLength()) m_wndDesktopAccessReq.SetWindowText(szFilePath); }
void CSoundEventsPage::OnBnClickedButtonEventsTransferend() { CString szFilePath = GetEventFilePath(); if(szFilePath.GetLength()) m_wndTransferEnd.SetWindowText(szFilePath); }
void CSoundEventsPage::OnBnClickedButtonEventsDesktopsession() { CString szFilePath = GetEventFilePath(); if(szFilePath.GetLength()) m_wndDesktopSession.SetWindowText(szFilePath); }
void CSoundEventsPage::OnBnClickedButtonEventsStoppedtalk() { CString szFilePath = GetEventFilePath(); if(szFilePath.GetLength()) m_wndStopTalkEdit.SetWindowText(szFilePath); }
void CSoundEventsPage::OnBnClickedButtonEventsFilesupd() { CString szFilePath = GetEventFilePath(); if(szFilePath.GetLength()) m_wndFilesUpd.SetWindowText(szFilePath); }
void CSoundEventsPage::OnBnClickedButtonEventsChanmessage() { CString szFilePath = GetEventFilePath(); if(szFilePath.GetLength()) m_wndChanMsgEdit.SetWindowText(szFilePath); }
void CSoundEventsPage::OnBnClickedButtonEventsHotkey() { CString szFilePath = GetEventFilePath(); if(szFilePath.GetLength()) m_wndHotKey.SetWindowText(szFilePath); }
void CSoundEventsPage::OnBnClickedButtonEventsNewmessage() { CString szFilePath = GetEventFilePath(); if(szFilePath.GetLength()) m_wndNewMessage.SetWindowText(szFilePath); }
void CSoundEventsPage::OnBnClickedButtonEventsServerlost() { CString szFilePath = GetEventFilePath(); if(szFilePath.GetLength()) m_wndServerLost.SetWindowText(szFilePath); }
void CSoundEventsPage::OnBnClickedButtonEventsUserremoved() { CString szFilePath = GetEventFilePath(); if(szFilePath.GetLength()) m_wndUserRemoved.SetWindowText(szFilePath); }