make xtray builds available and some cosmetics
This commit is contained in:
parent
d1029ab4ec
commit
3a8d4f91e5
|
@ -44,7 +44,7 @@ BOOL CALLBACK EnumWindowsProc(HWND hWnd, LPARAM lParam)
|
||||||
TCHAR szTitle[10];
|
TCHAR szTitle[10];
|
||||||
GetWindowText(hWnd, szTitle, 9);
|
GetWindowText(hWnd, szTitle, 9);
|
||||||
|
|
||||||
if(_tcsstr(szTitle, _T("X-Chat [")))
|
if(_tcsstr(szTitle, _T("XChat [")))
|
||||||
{
|
{
|
||||||
g_hXchatWnd = hWnd;
|
g_hXchatWnd = hWnd;
|
||||||
return false;
|
return false;
|
||||||
|
@ -339,7 +339,7 @@ LRESULT CALLBACK WindowProc(HWND hWnd, UINT msg, WPARAM wparam, LPARAM lparam)
|
||||||
if(msg == RegisterWindowMessage(_T("TaskbarCreated")))
|
if(msg == RegisterWindowMessage(_T("TaskbarCreated")))
|
||||||
{
|
{
|
||||||
char szVersion[64];
|
char szVersion[64];
|
||||||
_snprintf(szVersion, 64, "X-Chat [%s]", xchat_get_info(ph, "version"));
|
_snprintf(szVersion, 64, "XChat-WDK [%s]", xchat_get_info(ph, "version"));
|
||||||
AddIcon(g_hXchatWnd, 1, g_hIcons[0], szVersion, (NIF_ICON | NIF_MESSAGE | NIF_TIP), WM_TRAYMSG);
|
AddIcon(g_hXchatWnd, 1, g_hIcons[0], szVersion, (NIF_ICON | NIF_MESSAGE | NIF_TIP), WM_TRAYMSG);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -32,7 +32,7 @@ IDD_EVENTS DIALOGEX 8, 20, 216, 143
|
||||||
STYLE DS_SETFONT | DS_SETFOREGROUND | WS_CHILD
|
STYLE DS_SETFONT | DS_SETFOREGROUND | WS_CHILD
|
||||||
FONT 8, "Tahoma", 0, 0, 0x0
|
FONT 8, "Tahoma", 0, 0, 0x0
|
||||||
BEGIN
|
BEGIN
|
||||||
GROUPBOX "X-Chat Events",IDC_STATIC,5,5,205,77
|
GROUPBOX "XChat Events",IDC_STATIC,5,5,205,77
|
||||||
CONTROL "Server Notice",9,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,
|
CONTROL "Server Notice",9,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,
|
||||||
145,32,55,10
|
145,32,55,10
|
||||||
CONTROL "Topic Change",3,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,
|
CONTROL "Topic Change",3,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,
|
||||||
|
@ -62,13 +62,13 @@ BEGIN
|
||||||
GROUPBOX "Options",IDC_STATIC,5,5,205,135
|
GROUPBOX "Options",IDC_STATIC,5,5,205,135
|
||||||
CONTROL "Auto away on minimize",11,"Button",BS_AUTOCHECKBOX |
|
CONTROL "Auto away on minimize",11,"Button",BS_AUTOCHECKBOX |
|
||||||
WS_TABSTOP,16,60,100,10
|
WS_TABSTOP,16,60,100,10
|
||||||
CONTROL "Minimize X-Chat to the system tray",12,"Button",
|
CONTROL "Minimize XChat to the system tray",12,"Button",
|
||||||
BS_AUTOCHECKBOX | WS_TABSTOP,16,18,133,10
|
BS_AUTOCHECKBOX | WS_TABSTOP,16,18,133,10
|
||||||
CONTROL "Minimize to the tray instead of closing",17,"Button",
|
CONTROL "Minimize to the tray instead of closing",17,"Button",
|
||||||
BS_AUTOCHECKBOX | WS_TABSTOP,16,32,174,9
|
BS_AUTOCHECKBOX | WS_TABSTOP,16,32,174,9
|
||||||
EDITTEXT IDC_AWAY_MSG,33,86,169,50,ES_AUTOHSCROLL
|
EDITTEXT IDC_AWAY_MSG,33,86,169,50,ES_AUTOHSCROLL
|
||||||
LTEXT "Away Msg:",IDC_STATIC,27,72,35,8
|
LTEXT "Away Msg:",IDC_STATIC,27,72,35,8
|
||||||
CONTROL "Remove X-Chat from the taskbar ( Only show in tray )",
|
CONTROL "Remove XChat from the taskbar (only show in tray)",
|
||||||
20,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,16,46,191,9
|
20,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,16,46,191,9
|
||||||
END
|
END
|
||||||
|
|
||||||
|
@ -108,7 +108,7 @@ BEGIN
|
||||||
GROUPBOX "Version Information:",IDC_STATIC,101,92,109,49
|
GROUPBOX "Version Information:",IDC_STATIC,101,92,109,49
|
||||||
LTEXT "1.2.3 PR",IDC_STATIC,170,105,33,8,0,WS_EX_RIGHT
|
LTEXT "1.2.3 PR",IDC_STATIC,170,105,33,8,0,WS_EX_RIGHT
|
||||||
LTEXT "Compiled On: ",IDC_STATIC,110,116,46,8
|
LTEXT "Compiled On: ",IDC_STATIC,110,116,46,8
|
||||||
LTEXT "11/06/05",IDC_STATIC,174,117,30,8
|
LTEXT "10/08/16",IDC_STATIC,174,117,30,8
|
||||||
LTEXT "Version Number:",IDC_STATIC,110,105,54,8
|
LTEXT "Version Number:",IDC_STATIC,110,105,54,8
|
||||||
END
|
END
|
||||||
|
|
||||||
|
@ -249,8 +249,8 @@ BEGIN
|
||||||
VALUE "FileVersion", "1, 2, 3, 0"
|
VALUE "FileVersion", "1, 2, 3, 0"
|
||||||
VALUE "InternalName", "X-Tray"
|
VALUE "InternalName", "X-Tray"
|
||||||
VALUE "LegalCopyright", "Copyright © 2005"
|
VALUE "LegalCopyright", "Copyright © 2005"
|
||||||
VALUE "OriginalFilename", "X-Tray.dll"
|
VALUE "OriginalFilename", "xtray.dll"
|
||||||
VALUE "ProductName", "X-Tray - X-Chat Win32 System Tray Plugin"
|
VALUE "ProductName", "X-Tray - XChat Win32 System Tray Plugin"
|
||||||
VALUE "ProductVersion", "1, 2, 3, 0"
|
VALUE "ProductVersion", "1, 2, 3, 0"
|
||||||
END
|
END
|
||||||
END
|
END
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
#include "callbacks.h"
|
#include "callbacks.h"
|
||||||
#include "resource.h"
|
#include "resource.h"
|
||||||
|
|
||||||
TCHAR BACKUP_INI_FILE[] = _T(".\\plugins\\config\\xTray.ini");
|
TCHAR BACKUP_INI_FILE[] = _T(".\\plugins\\config\\xtray.conf");
|
||||||
struct HOTKEY g_hHotKey;
|
struct HOTKEY g_hHotKey;
|
||||||
|
|
||||||
void SavePrefs(int iDlg)
|
void SavePrefs(int iDlg)
|
||||||
|
@ -48,7 +48,7 @@ void SavePrefs(int iDlg)
|
||||||
char temp[1024];
|
char temp[1024];
|
||||||
TCHAR TEMP_INI_FILE[1024];
|
TCHAR TEMP_INI_FILE[1024];
|
||||||
|
|
||||||
_snprintf(temp, 1024, "%s\\xtray.ini", xchat_get_info(ph, "xchatdir"));
|
_snprintf(temp, 1024, "%s\\xtray.conf", xchat_get_info(ph, "xchatdir"));
|
||||||
ConvertString(temp, TEMP_INI_FILE, 1024);
|
ConvertString(temp, TEMP_INI_FILE, 1024);
|
||||||
|
|
||||||
// ok this one is really ugly
|
// ok this one is really ugly
|
||||||
|
@ -141,7 +141,7 @@ void LoadPrefs()
|
||||||
char temp[1024];
|
char temp[1024];
|
||||||
TCHAR TEMP_INI_FILE[1024];
|
TCHAR TEMP_INI_FILE[1024];
|
||||||
|
|
||||||
_snprintf(temp, 1024, "%s\\xtray.ini", xchat_get_info(ph, "xchatdir"));
|
_snprintf(temp, 1024, "%s\\xtray.conf", xchat_get_info(ph, "xchatdir"));
|
||||||
ConvertString(temp, TEMP_INI_FILE, 1024);
|
ConvertString(temp, TEMP_INI_FILE, 1024);
|
||||||
|
|
||||||
if(FileExists(TEMP_INI_FILE))
|
if(FileExists(TEMP_INI_FILE))
|
||||||
|
|
|
@ -74,7 +74,7 @@ int xchat_plugin_init(xchat_plugin *plugin_handle, char **plugin_name, char **pl
|
||||||
ph = plugin_handle;
|
ph = plugin_handle;
|
||||||
|
|
||||||
*plugin_name = "X-Tray";
|
*plugin_name = "X-Tray";
|
||||||
*plugin_desc = "Minimize X-Chat to the windows systemtray";
|
*plugin_desc = "Minimize XChat to the Windows system tray";
|
||||||
*plugin_version = "1.2.3 PR";
|
*plugin_version = "1.2.3 PR";
|
||||||
|
|
||||||
/***************************************************************************************************************************/
|
/***************************************************************************************************************************/
|
||||||
|
@ -116,7 +116,7 @@ int xchat_plugin_init(xchat_plugin *plugin_handle, char **plugin_name, char **pl
|
||||||
/************************* Add our icon to the tray ************************************************************************/
|
/************************* Add our icon to the tray ************************************************************************/
|
||||||
/***************************************************************************************************************************/
|
/***************************************************************************************************************************/
|
||||||
char szVersion[64];
|
char szVersion[64];
|
||||||
_snprintf(szVersion, 64, "X-Chat [%s]", xchat_get_info(ph, "version"));
|
_snprintf(szVersion, 64, "XChat-WDK [%s]", xchat_get_info(ph, "version"));
|
||||||
AddIcon(g_hXchatWnd, 1, g_hIcons[0], szVersion, (NIF_ICON | NIF_MESSAGE | NIF_TIP), WM_TRAYMSG);
|
AddIcon(g_hXchatWnd, 1, g_hIcons[0], szVersion, (NIF_ICON | NIF_MESSAGE | NIF_TIP), WM_TRAYMSG);
|
||||||
|
|
||||||
/***************************************************************************************************************************/
|
/***************************************************************************************************************************/
|
||||||
|
|
Loading…
Reference in New Issue