#ifndef __DlgChatPreferences_h__
#define __DlgChatPreferences_h__
#if _MSC_VER > 1000
#pragma once
#endif class CPageChat;
class CDlgChatPreferences : public CDialog
{
public:
DECLARE_MESSAGE_MAP()
public:
CDlgChatPreferences(CPageChat* pPage);
protected:
bool IsAdminPageMonitored() const
{
return m_bAdminMessageBox || m_bAdminRun || m_bAdminChatList;
}
bool IsChatMonitored() const
{
return !!m_bEnableChatList;
}
CPageChat* GetPage()
{
return m_pPage;
}
public:
protected:
virtual void DoDataExchange(CDataExchange* pDX); protected:
void LoadFromRegistry();
void SaveToRegistry();
bool ShortcutExists();
void UpdateUI();
protected:
virtual BOOL OnInitDialog();
virtual void OnOK();
afx_msg void OnEnableChatList();
afx_msg void OnUnlimitedChatHistory();
afx_msg void OnLimitChatHistory();
afx_msg void OnAdminRun();
afx_msg void OnAdminRunProperties();
afx_msg void OnAdminRunTest();
protected:
enum { IDD = IDD_CHAT_PREFERENCES };
CButton m_btnAdminRunProperties;
CButton m_btnUnlimitedChat;
CButton m_btnLimitChat;
CEdit m_editChatListLimit;
CStatic m_staticChatListLimit;
BOOL m_bAdminChatList;
BOOL m_bAdminMessageBox;
BOOL m_bAdminRun;
BOOL m_bEnableChatList;
int m_eChatListLimit;
DWORD m_dwChatListLimit;
protected:
CString m_strShortcutPath;
CPageChat* m_pPage;
protected:
friend class CPageChat;
};
#endif