[Ttssh2-commit] [6664] バルーン通知時のアイコンの種類を指定出来るようにした。

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2017年 4月 3日 (月) 21:51:44 JST


Revision: 6664
          http://sourceforge.jp/projects/ttssh2/scm/svn/commits/6664
Author:   doda
Date:     2017-04-03 21:51:43 +0900 (Mon, 03 Apr 2017)
Log Message:
-----------
バルーン通知時のアイコンの種類を指定出来るようにした。

Modified Paths:
--------------
    trunk/teraterm/common/ttcommon.h
    trunk/teraterm/ttpcmn/ttcmn.c
    trunk/ttssh2/ttxssh/fwd.c

-------------- next part --------------
Modified: trunk/teraterm/common/ttcommon.h
===================================================================
--- trunk/teraterm/common/ttcommon.h	2017-04-03 12:51:40 UTC (rev 6663)
+++ trunk/teraterm/common/ttcommon.h	2017-04-03 12:51:43 UTC (rev 6664)
@@ -55,11 +55,15 @@
 
 void FAR PASCAL CreateNotifyIcon(PComVar cv);
 void FAR PASCAL DeleteNotifyIcon(PComVar cv);
-void FAR PASCAL NotifyMessage(PComVar cv, PCHAR message, PCHAR title);
+void FAR PASCAL NotifyMessage(PComVar cv, PCHAR message, PCHAR title, DWORD flag);
 void FAR PASCAL ShowNotifyIcon(PComVar cv);
 void FAR PASCAL HideNotifyIcon(PComVar cv);
 void FAR PASCAL SetVerNotifyIcon(PComVar cv, unsigned int ver);
 
+#define NotifyInfoMessage(cv, msg, title) NotifyMessage(cv, msg, title, 1)
+#define NotifyWarnMessage(cv, msg, title) NotifyMessage(cv, msg, title, 2)
+#define NotifyErrorMessage(cv, msg, title) NotifyMessage(cv, msg, title, 3)
+
 WORD FAR PASCAL SJIS2JIS(WORD KCode);
 WORD FAR PASCAL SJIS2EUC(WORD KCode);
 WORD FAR PASCAL JIS2SJIS(WORD KCode);

Modified: trunk/teraterm/ttpcmn/ttcmn.c
===================================================================
--- trunk/teraterm/ttpcmn/ttcmn.c	2017-04-03 12:51:40 UTC (rev 6663)
+++ trunk/teraterm/ttpcmn/ttcmn.c	2017-04-03 12:51:43 UTC (rev 6664)
@@ -2452,7 +2452,7 @@
 	return;
 }
 
-void FAR PASCAL NotifyMessage(PComVar cv, char *msg, char *title)
+void FAR PASCAL NotifyMessage(PComVar cv, char *msg, char *title, DWORD flag)
 {
 	if (msg == NULL) {
 		return;
@@ -2467,7 +2467,7 @@
 	cv->NotifyIcon->dwStateMask = NIS_HIDDEN;
 
 	if (title) {
-		cv->NotifyIcon->dwInfoFlags = NIIF_INFO;
+		cv->NotifyIcon->dwInfoFlags = flag;
 		strncpy_s(cv->NotifyIcon->szInfoTitle, sizeof(cv->NotifyIcon->szInfoTitle), title, _TRUNCATE);
 	}
 	else {

Modified: trunk/ttssh2/ttxssh/fwd.c
===================================================================
--- trunk/ttssh2/ttxssh/fwd.c	2017-04-03 12:51:40 UTC (rev 6663)
+++ trunk/ttssh2/ttxssh/fwd.c	2017-04-03 12:51:43 UTC (rev 6664)
@@ -1936,7 +1936,7 @@
 	HWND cur_active = GetActiveWindow();
 
 	if (pvar->session_settings.ForwardAgentNotify) {
-		NotifyMessage(pvar->cv, "Remote host access to agent", "Agent Forwarding");
+		NotifyInfoMessage(pvar->cv, "Remote host access to agent", "Agent Forwarding");
 	}
 
 	if (pvar->session_settings.ForwardAgentConfirm) {



Ttssh2-commit メーリングリストの案内
Back to archive index