blob: 6eb98986a7376f09caf47d5781d24207fa5a980d (
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
|
#pragma once
#define _CRT_SECURE_NO_WARNINGS
#define _CRT_NONSTDC_NO_DEPRECATE
#define MIRANDA_VER 0x0A00
#include <windows.h>
#include <commctrl.h>
#include <string>
#include <map>
#include <xfunctional>
#include "resource.h"
#include <time.h>
#include <newpluginapi.h>
#include <m_clist.h>
#include <m_contacts.h>
#include <m_langpack.h>
#include <m_database.h>
#include <m_system.h>
#include <m_system_cpp.h>
#include <m_message.h>
#include <m_utils.h>
#include <m_icolib.h>
#include <m_hotkeys.h>
#include <m_protosvc.h>
#include <m_options.h>
#include <win2k.h>
#include <m_toptoolbar.h>
#define V_RECENTCONTACTS_TOGGLE_IGNORE "RecentContacts/ToggleIgnore"
using namespace std;
void wSetData(char **Data, const char *Value);
void wfree(char **Data);
static char msLastUC_ShowListName[] = LPGEN("Recent Contacts");
static char dbLastUC_ModuleName[] = "RecentContacts";
static char dbLastUC_LastUsedTimeLo[] = "LastUsedTimeLo";
static char dbLastUC_LastUsedTimeHi[] = "LastUsedTimeHi";
static char dbLastUC_WindowPosPrefix[] = "Window";
static char dbLastUC_DateTimeFormat[] = "DateTimeFormat";
static char dbLastUC_DateTimeFormatDefault[] = "(%Y-%m-%d %H:%M) ";
static char dbLastUC_MaxShownContacts[] = "MaxShownContacts";
static char dbLastUC_IgnoreContact[] = "Ignore";
static char dbLastUC_HideOfflineContacts[] = "HideOfflineContacts";
static char msLastUC_ShowList[] = "RecentContacts/ShowList";
static char msLastUC_IgnoreOff[] = "RecentContacts/SetIgnoreOff";
static char msLastUC_IgnoreOn[] = "RecentContacts/SetIgnoreOn";
/////////////////////////////////////////////////////////////////////////////////////////
typedef struct _LastUCOptions
{
int MaxShownContacts;
int HideOffline;
string DateTimeFormat;
}
LastUCOptions;
extern LastUCOptions LastUCOpt;
//#include "m_tabsrmm.h"
// custom tabSRMM events
#define tabMSG_WINDOW_EVT_CUSTOM_BEFORESEND 1
struct TABSRMM_SessionInfo {
unsigned int cbSize;
unsigned int evtCode;
HWND hwnd; // handle of the message dialog (tab)
HWND hwndContainer; // handle of the parent container
HWND hwndInput; // handle of the input area (rich edit)
/*struct MessageWindowData*/ void *dat; // the session info
/*struct ContainerWindowData*/ void *pContainer;
};
typedef std::multimap <__time64_t, HANDLE, std::greater<__time64_t> > cmultimap;
typedef std::pair <__time64_t, HANDLE> cpair;
typedef struct LASTUC_DLG_DATA
{
cmultimap *Contacts;
SIZE WindowMinSize;
RECT ListUCRect;
HANDLE hContact;
} LASTUC_DLG_DATA;
|