This repository has been archived by the owner on Oct 6, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ui_window.h
90 lines (61 loc) · 2.21 KB
/
ui_window.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
//--------------------------------------------------
// F-cje
/*
Format:
{...} - pomiedzy {} znajduje sie wartosc.
{[...} zamknie wynik w [] (dozwolone równie¿ s¹ '(' '{' ' ' '"' ''')
{profile} - nazwa profilu
{version} - wersja konnekta
{UID} - UID kontaktu
{status} - status kontaktu
{info} - opis statusu
{display} - "wyœwietl jako" kontaktu
{group} - grupa kontaktu
{IP}
Dla tray'a
{eventDisplay} - kontakt dowi¹zany do zdarzenia
{eventTitle} - nazwa zdarzenia
%
*/
extern map <string , string> formatMap;
LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM);
LRESULT CALLBACK TopProc(HWND, UINT, WPARAM, LPARAM);
LRESULT CALLBACK DockClassProc(HWND, UINT, WPARAM, LPARAM);
void snapIt (RECT* wr);
void dockHide(bool show);
void dockEnd();
void AutoHide();
int populateList();
void onSizeMain(int w , int h);
int createWindows();
void Animate();
VOID CALLBACK timerAnimProc(HWND hwnd,UINT uMsg,UINT_PTR idEvent,DWORD dwTime);
#define IDB_STATUS 1
int registerClasses();
void destroyWindows();
int createWindows();
int startWindows();
void createTray(int ico=IDI_TRAY);
void changeTray(int ico , char * txt = 0);
void destroyTray();
// ----------------------------------------
int getAnim(int id);
//VOID CALLBACK timerAnimProc(void * lpArg,DWORD dwLow,DWORD dwHigh) {
VOID CALLBACK timerAnimProc(HWND hwnd,UINT uMsg,UINT_PTR idEvent,DWORD dwTime);
void Animate();
//-------------------------------------
VOID CALLBACK timerHideProc(HWND hwnd,UINT uMsg,UINT_PTR idEvent,DWORD dwTime);
VOID CALLBACK timerAwayProc(HWND hwnd,UINT uMsg,UINT_PTR idEvent,DWORD dwTime);
void AutoHide();
void AutoAway();
void onSizeMain(int w , int h);
void dockDesktop(bool show , bool repos = false);
RECT dockRect(bool invalidate = false);
void dockIt (RECT* wr);
void dockEnd();
void snapIt (RECT* wr);
int strcompare (string a , string b);
LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam);
LRESULT CALLBACK TopProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam);
LRESULT CALLBACK DockClassProc(HWND hWnd , UINT message, WPARAM wParam, LPARAM lParam);
#define HIDE_INTERVAL 1000