forked from SomeSupport/eMule
-
Notifications
You must be signed in to change notification settings - Fork 97
/
CommentDialog.h
53 lines (44 loc) · 1.25 KB
/
CommentDialog.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#pragma once
#include "ResizableLib/ResizablePage.h"
#include "ComboBoxEx2.h"
#include "CommentListCtrl.h"
class CKnownFile;
namespace Kademlia {
class CEntry;
};
class CCommentDialog : public CResizablePage
{
DECLARE_DYNAMIC(CCommentDialog)
public:
CCommentDialog(); // standard constructor
virtual ~CCommentDialog();
void SetFiles(const CSimpleArray<CObject*>* paFiles) { m_paFiles = paFiles; m_bDataChanged = true; }
// Dialog Data
enum { IDD = IDD_COMMENT };
void Localize();
protected:
const CSimpleArray<CObject*>* m_paFiles;
bool m_bDataChanged;
CComboBoxEx2 m_ratebox;
CImageList m_imlRating;
CCommentListCtrl m_lstComments;
bool m_bMergedComment;
bool m_bSelf;
uint32 m_timer;
bool m_bEnabled;
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
virtual BOOL OnInitDialog();
virtual BOOL OnSetActive();
virtual BOOL OnApply();
void RefreshData(bool deleteOld = true);
void EnableDialog(bool bEnabled);
DECLARE_MESSAGE_MAP()
afx_msg void OnBnClickedSearchKad();
afx_msg void OnBnClickedReset();
afx_msg LRESULT OnDataChanged(WPARAM, LPARAM);
afx_msg void OnEnChangeCmtText();
afx_msg void OnCbnSelendokRatelist();
afx_msg void OnCbnSelchangeRatelist();
afx_msg void OnDestroy();
afx_msg void OnTimer(UINT nIDEvent);
};