summaryrefslogtreecommitdiff
path: root/plugins/Clist_modern/src/hdr/modern_global_structure.h
blob: a7da9383ace66adf310adb7c3e3a09488cbde344 (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
#pragma once

#ifndef modern_global_structure_h__
#define modern_global_structure_h__

typedef struct tagCLUIDATA
{
	/************************************
	**         Global variables       **
	************************************/

	// NotifyArea menu
	HMENU  hMenuNotify;
	WORD   wNextMenuID;
	int    iIconNotify;
	BOOL   bEventAreaEnabled;
	BOOL   bNotifyActive;
	DWORD  dwFlags;
	int    hIconNotify;
	MCONTACT hUpdateContact;

	// Contact List View Mode
	TCHAR  groupFilter[2048];
	char   protoFilter[2048];
	char   varFilter[2048];
	DWORD  lastMsgFilter;
	char   current_viewmode[256], old_viewmode[256];
	BYTE   boldHideOffline;
	BYTE   bOldUseGroups;
	DWORD  statusMaskFilter;
	DWORD  stickyMaskFilter;
	DWORD  filterFlags;
	DWORD  bFilterEffective;
	DWORD  t_now;

	// Modern Global Variables
	BOOL   fDisableSkinEngine;
	BOOL   fOnDesktop;
	BOOL   fSmoothAnimation;
	BOOL   fLayered;
	BOOL   fDocked;
	BOOL   fSortNoOfflineBottom;
	BOOL   fAutoSize;
	BOOL   fAeroGlass;
	HRGN   hAeroGlassRgn;

	BOOL   mutexPreventDockMoving;
	BOOL   mutexOnEdgeSizing;
	BOOL   mutexPaintLock;

	BYTE   bCurrentAlpha;
	BYTE   bSTATE;
	BYTE   bBehindEdgeSettings;
	BYTE   bSortByOrder[3];

	signed char nBehindEdgeState;

	DWORD  dwKeyColor;

	HWND   hwndEventFrame;

	int    LeftClientMargin;
	int    RightClientMargin;
	int    TopClientMargin;
	int    BottomClientMargin;

	BOOL   bInternalAwayMsgDiscovery;
	BOOL   bRemoveAwayMessageForOffline;

	//hEventHandles

	HANDLE hEventBkgrChanged;
	HANDLE hEventPreBuildTrayMenu;
	HANDLE hEventPreBuildGroupMenu;
	HANDLE hEventPreBuildSubGroupMenu;
	HANDLE hEventStatusBarShowToolTip;
	HANDLE hEventStatusBarHideToolTip;
	HANDLE hEventSkinServicesCreated;

	int    nGapBetweenTitlebar;
} CLUIDATA;

EXTERN_C CLUIDATA g_CluiData;

#endif // modern_global_structure_h__