This repository has been archived by the owner on Jan 24, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
zsIRC_Wnd.cpp
75 lines (60 loc) · 1.89 KB
/
zsIRC_Wnd.cpp
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
// zsIRC_Wnd.cpp : implementation file
//
#include "stdafx.h"
#include "zsIRC.h"
#include "zsIRC_Wnd.h"
#include "zsIRC_Settings.h"
#include "ChildView.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// zsIRC_Wnd
zsIRC_Wnd::zsIRC_Wnd(CChannelBar*c)
{
m_ChannelBar = c;
}
zsIRC_Wnd::~zsIRC_Wnd()
{
}
BEGIN_MESSAGE_MAP(zsIRC_Wnd, CWnd)
//{{AFX_MSG_MAP(zsIRC_Wnd)
// NOTE - the ClassWizard will add and remove mapping macros here.
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// zsIRC_Wnd message handlers
void zsIRC_Wnd::SetEventLevel(ZSIRC_WND_HIGHLIGHT h) {
if (h > evEvent) evEvent = h;
/*
if (evEvent >= ZSIRC_WH_MESSAGE && SETUP.nPopupNotify && g_ChannelBar) {
//if (!g_ChannelBar->GetParent()->IsWindowVisible())
{
SHNOTIFICATIONDATA shnd;
ZeroMemory(&shnd,sizeof(SHNOTIFICATIONDATA));
shnd.cbStruct = sizeof(SHNOTIFICATIONDATA);
shnd.dwID = 13371;
shnd.csDuration = 5;
shnd.npPriority = SHNP_INFORM;
shnd.hicon = theApp.LoadIcon(IDI_NOTIFYICON); // TODO
shnd.grfFlags = SHNF_STRAIGHTTOTRAY;
shnd.hwndSink = g_ChannelBar->m_hWnd;
shnd.pszHTML = _T("töf <A HREF='cmd:3'>WWWWWWWW</A>");
shnd.pszTitle = _T("zsIRC");
LRESULT l = SHNotificationAdd(&shnd);
TRACE1("Added notification to %08X...\n",g_ChannelBar->m_hWnd);
}
//Sleep(0);
}
*/
}
//void zsIRC_Wnd::AddLine(TCHAR * szSender,TCHAR * szMessage,COLORREF cColor) {}
void zsIRC_Wnd::AddLine(TCHAR * szMessage,COLORREF cColor) {}
void zsIRC_Wnd::SetCaption(TCHAR * szNewCaption) {
_tcsncpy(szCaption,szNewCaption,50);
}
CChannelBar * zsIRC_Wnd::GetChannelBar() {
return m_ChannelBar;
}