blob: 822fa51ccbd95fdd788211367bf2aa5281e68b6f (
plain)
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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
|
#ifndef _PLUGWIN
#define _PLUGWIN
#define TIMER_ID 19191
#define TIMER_ID2 19192
#define TIMER_ID3 19193
#include "timezone.h"
#include <newpluginapi.h>
#include <m_langpack.h>
#include <m_skin.h>
#include <m_database.h>
#include <m_options.h>
#include <m_popup.h>
#include <m_protosvc.h>
#include <m_protomod.h>
#include <stdio.h>
#include <m_utils.h>
#include <m_cluiframes.h>
//#include "../mwclist/m_clist.h"
#include <m_clist.h>
#include <m_genmenu.h>
//#include "../mwclist/m_clc.h"
#include <m_clc.h>
#include <m_fontservice.h>
#include <m_skin_eng.h>
#include <m_icolib.h>
#include <sstream>
#include "resource.h"
#include "time_convert.h"
#define PLUG "WorldTime"
#define DEFAULT_MINMAX false
#define DEFAULT_WINDOW_X 100
#define DEFAULT_WINDOW_Y 100
#define DEFAULT_WINDOW_WIDTH 200
#define DEFAULT_WINDOW_HEIGHT 100
#define MAX_NAME_LENGTH 256
#define MAX_TIME_LENGTH 256
typedef struct tagLISTITEM {
int cbSize;
char pszText[MAX_NAME_LENGTH];
int timezone_list_index;
SYSTEMTIME sunset;
SYSTEMTIME sunrise;
char pszTimeText[MAX_NAME_LENGTH];
char pszDateText[MAX_NAME_LENGTH];
HICON icon;
} LISTITEM;
#include <vector>
typedef std::vector<LISTITEM> ITEMLIST;
extern HICON upIcon, downIcon;
extern ITEMLIST listbox_items;
extern HANDLE mainThread;
extern char format_string[];
int addmypluginwindow1(HWND parent);
void plugwin_cleanup();
int WorldTimeOptInit(WPARAM wParam,LPARAM lParam);
void __stdcall ShowPopup( const char* line1, const char* line2, int flags );
#define WinVerMajor() LOBYTE(LOWORD(GetVersion()))
#define WinVerMinor() HIBYTE(LOWORD(GetVersion()))
#define IsWinVer2000Plus() (WinVerMajor()>=5)
#define CLCDEFAULT_BKCOLOUR GetSysColor(COLOR_3DFACE)
#define CLCDEFAULT_SELBKCOLOUR GetSysColor(COLOR_HIGHLIGHT)
#define CLCDEFAULT_SELTEXTCOLOUR GetSysColor(COLOR_HIGHLIGHTTEXT)
#define CLCDEFAULT_TEXTCOLOUR GetSysColor(COLOR_WINDOWTEXT)
int InitIcons(WPARAM wParam, LPARAM lParam);
int LoadIcons(WPARAM wParam, LPARAM lParam);
extern HINSTANCE hInst;
extern ITEMLIST listbox_items;
extern TCHAR format_string[512], date_format_string[512];
extern HWND pluginwind, hwnd_clist;
extern bool hook_window_behaviour_to_clist;
extern bool set_format;
extern bool show_icons;
extern bool hide_menu;
extern HFONT ContactFont;
extern COLORREF ContactFontColour;
HFONT GetFont();
int FillList(WPARAM wParam, LPARAM lParam);
#endif
|