forked from henrypp/simplewall
-
Notifications
You must be signed in to change notification settings - Fork 0
/
editor.h
98 lines (80 loc) · 1.57 KB
/
editor.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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
// simplewall
// Copyright (c) 2016-2023 Henry++
#pragma once
typedef struct _EDITOR_CONTEXT
{
R_LAYOUT_MANAGER layout_manager;
HWND hwnd;
HICON hicon;
union
{
PITEM_APP ptr_app;
PITEM_RULE ptr_rule;
};
struct
{
SIZE_T current_length;
INT listview_id;
INT item_id;
};
INT page_id;
BOOLEAN is_settorules;
} EDITOR_CONTEXT, *PEDITOR_CONTEXT;
_Ret_maybenull_
PEDITOR_CONTEXT _app_editor_createwindow (
_In_ HWND hwnd,
_In_ PVOID lparam,
_In_ INT page_id,
_In_ BOOLEAN is_settorules
);
VOID _app_editor_deletewindow (
_In_ PEDITOR_CONTEXT context
);
_Ret_maybenull_
PEDITOR_CONTEXT _app_editor_getcontext (
_In_ HWND hwnd
);
VOID _app_editor_setcontext (
_In_ HWND hwnd,
_In_ PEDITOR_CONTEXT context
);
VOID _app_editor_addtabitem (
_In_ HWND hwnd,
_In_ UINT locale_id,
_In_ INT dlg_id,
_In_ PEDITOR_CONTEXT context,
_Inout_ PINT tabs_count
);
VOID _app_editor_settabtitle (
_In_ HWND hwnd,
_In_ INT listview_id
);
_Ret_maybenull_
PR_STRING _app_editor_getrulesfromlistview (
_In_ HWND hwnd,
_In_ INT ctrl_id,
_In_ INT exclude_id
);
VOID _app_editor_setrulestolistview (
_In_ HWND hwnd,
_In_ INT ctrl_id,
_In_ PR_STRING rule
);
INT_PTR CALLBACK EditorRuleProc (
_In_ HWND hwnd,
_In_ UINT msg,
_In_ WPARAM wparam,
_In_ LPARAM lparam
);
INT_PTR CALLBACK EditorPagesProc (
_In_ HWND hwnd,
_In_ UINT msg,
_In_ WPARAM wparam,
_In_ LPARAM lparam
);
INT_PTR CALLBACK EditorProc (
_In_ HWND hwnd,
_In_ UINT msg,
_In_ WPARAM wparam,
_In_ LPARAM lparam
);