-
Notifications
You must be signed in to change notification settings - Fork 8
/
CellViewWindowOverrides.h
64 lines (54 loc) · 1.92 KB
/
CellViewWindowOverrides.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
54
55
56
57
58
59
60
61
62
63
64
#pragma once
namespace cse
{
namespace uiManager
{
class CellViewExtraData : public bgsee::WindowExtraData
{
public:
RECT RefFilterEditBox; // init bounds of the new controls
RECT RefFilterLabel;
RECT XLabel;
RECT YLabel;
RECT XEdit;
RECT YEdit;
RECT GoBtn;
RECT CellFilterEditBox;
RECT CellFilterLabel;
RECT VisibleOnlyCheckBox;
RECT SelectionOnlyCheckBox;
RECT RefreshRefListBtn;
CellViewExtraData();
virtual ~CellViewExtraData();
enum { kTypeID = 'XCVD' };
enum
{
kExtraRefListColumn_Persistent = TESCellViewWindow::kRefListColumn__MAX,
kExtraRefListColumn_Disabled,
kExtraRefListColumn_VWD,
kExtraRefListColumn_EnableParent,
kExtraRefListColumn_Count
};
static int CALLBACK CustomFormListComparator(LPARAM lParam1, LPARAM lParam2, LPARAM lParamSort);
static bool RefListFilter(TESForm* Form);
static void ExtraRefListColumnGetDispInfoCallback(NMLVDISPINFO* Data);
};
std::string CellViewCellListGetColumnText(HWND FormList, TESForm* Form, UInt32 ColumnIndex);
std::string CellViewRefListGetColumnText(HWND FormList, TESForm* Form, UInt32 ColumnIndex);
LRESULT CALLBACK CellViewWindowSubclassProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam,
bgsee::WindowSubclassProcCollection::SubclassProcExtraParams* SubclassParams);
void InitializeCellViewWindowOverrides();
}
}
// custom control IDs, as baked into the dialog templates
#define IDC_CSE_CELLVIEW_XLBL 9929
#define IDC_CSE_CELLVIEW_YLBL 9930
#define IDC_CSE_CELLVIEW_XEDIT 9931
#define IDC_CSE_CELLVIEW_YEDIT 9932
#define IDC_CSE_CELLVIEW_GOBTN 9933
#define IDC_CSE_CELLVIEW_VISIBLEONLYBTN 9938
#define IDC_CSE_CELLVIEW_SELECTEDONLYBTN 9939
#define IDC_CSE_CELLVIEW_REFRESHREFSBTN 9940
// the IDC_CSEFILTERABLEFORMLIST_XXX IDs are used for the ref list filter
#define IDC_CSE_CELLVIEW_CELLFILTEREDIT 9936
#define IDC_CSE_CELLVIEW_CELLFILTERLBL 9937