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
|
#ifndef DEFS_H
#define DEFS_H
#include <windows.h>
#include <commctrl.h>
#include <SWI-Prolog.h>
/* common.c */
TCHAR *TszFromSz(const char *, int);
/* main.c */
void UpdateLayout();
/* listview.c */
HWND LvCreate(HMENU, DWORD);
int LvHeight(HWND, int);
/* episodelistview.c */
HWND ElvCreate();
void ElvDoSort(void);
LRESULT ElvHandleNotify(LPARAM);
void ElvRedraw(void);
void ElvSetTop(int);
void ElvSelectFocus(void);
void ElvSelectUnwatched(int);
void ElvShowFocus(void);
void ElvUpdate(void);
void ElvUpdateItem(LPLVITEM);
/* datalistview.c */
HWND DlvCreate();
void DlvShowEpisode(int);
/* pl.c */
int Pl(char *, char *, char *, ...);
int Plp(term_t, char *, ...);
int Plg(term_t, char *, ...);
/* defs.h */
#define DLVSIKEY 0
#define DLVSIVALUE 1
#define ELVSIEPISODE 0
#define ELVSITITLE 1
#define ELVSIRATING 2
inline int
Cmp(int a, int b)
{
if (a == b)
return 0;
if (a > b)
return 1;
return -1;
}
inline int
Dpi(int i)
{
extern int IDPI;
return MulDiv(i, IDPI, 96);
}
#endif
|