-
Notifications
You must be signed in to change notification settings - Fork 6
/
ResourceView.h
34 lines (26 loc) · 929 Bytes
/
ResourceView.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
#pragma once
#include <map>
#include "ITransactionProcessor.h"
class CResourceView :
public CWindowImpl<CResourceView, CTreeViewCtrl>,
public ITransactionProcessor
{
CRITICAL_SECTION m_cs;
std::map<DWORD, HTREEITEM> m_contextParents;
std::map<DWORD, DWORD> m_tickCounts;
SettingsStorage& m_settings;
CMenu m_menu;
void OnClear();
void OnSettings();
public:
CResourceView(void);
~CResourceView(void);
LRESULT OnRightUp(UINT ui, CPoint Pos);
LRESULT OnRightButtonDown(UINT ui, CPoint pos);
BEGIN_MSG_MAP(CResourceView)
MSG_WM_RBUTTONDOWN(OnRightButtonDown)
MSG_WM_RBUTTONUP(OnRightUp);
END_MSG_MAP()
virtual void OnRequest(DWORD context, CString& request, CHttpHeaders& headers, bool isSSL, DWORD tickCount);
virtual void OnResponse(DWORD context, CString& response, CHttpHeaders& headers, bool isSSL, bool shouldBeFiltered, DWORD tickCount);
};