forked from henrypp/simplewall
-
Notifications
You must be signed in to change notification settings - Fork 0
/
search.h
84 lines (68 loc) · 1.42 KB
/
search.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
// simplewall
// Copyright (c) 2012-2021 dmex
// Copyright (c) 2021-2023 Henry++
#pragma once
typedef struct _EDIT_CONTEXT
{
HWND hwnd;
HICON hicon;
WNDPROC def_window_proc;
union
{
ULONG flags;
struct
{
ULONG is_hot : 1;
ULONG is_pushed : 1;
ULONG spare_bits : 30;
};
};
LONG image_width;
LONG image_height;
INT cx_size;
INT cx_border;
} EDIT_CONTEXT, *PEDIT_CONTEXT;
VOID _app_search_initializetheme (
_Inout_ PEDIT_CONTEXT context
);
VOID _app_search_destroytheme (
_Inout_ PEDIT_CONTEXT context
);
VOID _app_search_initialize (
_In_ HWND hwnd
);
VOID _app_search_setvisible (
_In_ HWND hwnd,
_In_ HWND hsearch
);
VOID _app_search_drawbutton (
_Inout_ PEDIT_CONTEXT context,
_In_ LPCRECT button_rect
);
VOID _app_search_getbuttonrect (
_In_ PEDIT_CONTEXT context,
_Inout_ PRECT rect
);
BOOLEAN _app_search_applyfiltercallback (
_In_ HWND hwnd,
_In_ INT listview_id,
_In_opt_ PR_STRING search_string
);
BOOLEAN _app_search_applyfilteritem (
_In_ HWND hwnd,
_In_ INT listview_id,
_In_ INT item_id,
_Inout_ PITEM_LISTVIEW_CONTEXT context,
_In_opt_ PR_STRING search_string
);
VOID _app_search_applyfilter (
_In_ HWND hwnd,
_In_ INT listview_id,
_In_opt_ PR_STRING search_string
);
LRESULT CALLBACK _app_search_subclass_proc (
_In_ HWND hwnd,
_In_ UINT msg,
_In_ WPARAM wparam,
_In_ LPARAM lparam
);