diff options
author | George Hazan <george.hazan@gmail.com> | 2013-03-14 21:05:30 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-03-14 21:05:30 +0000 |
commit | 45358c3507af7d4bb32c031eaa25708905effa91 (patch) | |
tree | 202fd149b18a39cfe6314f037421cf8d4fe2e842 /plugins/WhoUsesMyFiles/src | |
parent | ae5bb5cc96d0f0add1d1189c2a3293daaea83d6f (diff) |
old ansi popups removed, noone used them anyway
git-svn-id: http://svn.miranda-ng.org/main/trunk@4034 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/WhoUsesMyFiles/src')
-rw-r--r-- | plugins/WhoUsesMyFiles/src/wumfplug.cpp | 53 |
1 files changed, 23 insertions, 30 deletions
diff --git a/plugins/WhoUsesMyFiles/src/wumfplug.cpp b/plugins/WhoUsesMyFiles/src/wumfplug.cpp index ea9e3d5706..62b8f112cc 100644 --- a/plugins/WhoUsesMyFiles/src/wumfplug.cpp +++ b/plugins/WhoUsesMyFiles/src/wumfplug.cpp @@ -26,13 +26,10 @@ void LoadOptions() dbv.type = DBVT_TCHAR;
ZeroMemory(&WumfOptions, sizeof(WumfOptions));
if (DBGetContactSetting(NULL, ModuleName, OPT_FILE, &dbv) == 0)
- {
_tcsncpy(WumfOptions.LogFile, dbv.ptszVal, 255);
- }
else
- {
WumfOptions.LogFile[0] = '\0';
- };
+
WumfOptions.PopupsEnabled = DBGetContactSettingByte(NULL,ModuleName, POPUPS_ENABLED, TRUE);
WumfOptions.UseDefColor = DBGetContactSettingByte(NULL,ModuleName, COLOR_DEF, TRUE);
@@ -46,8 +43,7 @@ void LoadOptions() WumfOptions.DelayInf = DBGetContactSettingByte(NULL,ModuleName, DELAY_INF, FALSE);
WumfOptions.DelaySet = DBGetContactSettingByte(NULL,ModuleName, DELAY_SET, FALSE);
WumfOptions.DelaySec = DBGetContactSettingByte(NULL,ModuleName, DELAY_SEC, 0);
- if(!ServiceExists(MS_POPUP_ADDPOPUPEX))
- {
+ if( !ServiceExists(MS_POPUP_ADDPOPUP)) {
WumfOptions.DelayDef = TRUE;
WumfOptions.DelaySet = FALSE;
WumfOptions.DelayInf = FALSE;
@@ -180,35 +176,35 @@ void ShowThePopUp(PWumf w, LPTSTR title, LPTSTR text) void ShowThePreview()
{
- if(!ServiceExists(MS_POPUP_ADDPOPUP))
- {
+ if( !ServiceExists(MS_POPUP_ADDPOPUP)) {
MessageBox(NULL, TranslateT("PopUp plugin not found!"), TranslateT("WUMF plugin"), MB_OK|MB_ICONSTOP);
return;
- };
+ }
+
if(WumfOptions.AlertFolders)
{
- ShowThePopUp(NULL, _T("Guest"), _T("C:\\My Share"));
- Sleep(300);
- ShowThePopUp(NULL, _T("Guest"), _T("C:\\My Share\\Photos"));
- Sleep(300);
+ ShowThePopUp(NULL, _T("Guest"), _T("C:\\My Share"));
+ Sleep(300);
+ ShowThePopUp(NULL, _T("Guest"), _T("C:\\My Share\\Photos"));
+ Sleep(300);
}
ShowThePopUp(NULL, _T("Guest"), _T("C:\\Share\\My Photos\\photo.jpg"));
Sleep(300);
if(WumfOptions.AlertFolders)
{
- ShowThePopUp(NULL, _T("User"), _T("C:\\My Share"));
- Sleep(300);
- ShowThePopUp(NULL, _T("User"), _T("C:\\My Share\\Movies"));
- Sleep(300);
+ ShowThePopUp(NULL, _T("User"), _T("C:\\My Share"));
+ Sleep(300);
+ ShowThePopUp(NULL, _T("User"), _T("C:\\My Share\\Movies"));
+ Sleep(300);
}
ShowThePopUp(NULL, _T("User"), _T("C:\\My Share\\Movies\\The Two Towers.avi"));
Sleep(300);
if(WumfOptions.AlertFolders)
{
- ShowThePopUp(NULL, _T("Administrator"), _T("C:\\Distributives"));
- Sleep(300);
- ShowThePopUp(NULL, _T("Administrator"), _T("C:\\Distributives\\Win2k"));
- Sleep(300);
+ ShowThePopUp(NULL, _T("Administrator"), _T("C:\\Distributives"));
+ Sleep(300);
+ ShowThePopUp(NULL, _T("Administrator"), _T("C:\\Distributives\\Win2k"));
+ Sleep(300);
}
ShowThePopUp(NULL, _T("Administrator"), _T("C:\\Distributives\\Win2k\\setup.exe"));
};
@@ -230,9 +226,9 @@ DWORD WINAPI ThreadProc(LPVOID lpParameter) SetForegroundWindow(hDlg);
return (int)(1);
}
- hDlg = CreateDialog(hInst, MAKEINTRESOURCE(IDD_CONNLIST), NULL, (DLGPROC)ConnDlgProc);
- SendMessage(hDlg, WM_SETICON, ICON_SMALL, (LPARAM)LoadIcon(hInst,MAKEINTRESOURCE(IDI_DRIVE)));
- ShowWindow(hDlg, SW_SHOW);
+ hDlg = CreateDialog(hInst, MAKEINTRESOURCE(IDD_CONNLIST), NULL, (DLGPROC)ConnDlgProc);
+ SendMessage(hDlg, WM_SETICON, ICON_SMALL, (LPARAM)LoadIcon(hInst,MAKEINTRESOURCE(IDI_DRIVE)));
+ ShowWindow(hDlg, SW_SHOW);
while(GetMessage(&msg, NULL, 0, 0) == TRUE)
{
TranslateMessage(&msg);
@@ -240,11 +236,10 @@ DWORD WINAPI ThreadProc(LPVOID lpParameter) }
hDlg = NULL;
ExitThread(0);
-
+
return (int)(1);
}
-
static INT_PTR WumfShowConnections(WPARAM wParam,LPARAM lParam)
{
DWORD threadID = 0;
@@ -351,13 +346,11 @@ INT_PTR CALLBACK OptionsDlgProc(HWND hwndDlg,UINT msg,WPARAM wparam,LPARAM lpara CheckDlgButton(hwndDlg, IDC_COLOR_SET, WumfOptions.SelectColor?BST_CHECKED:BST_UNCHECKED);
EnableWindow(GetDlgItem(hwndDlg, IDC_COLOR_BACK), WumfOptions.SelectColor);
EnableWindow(GetDlgItem(hwndDlg, IDC_COLOR_TEXT), WumfOptions.SelectColor);
- if(WumfOptions.SelectColor)
- {
+ if(WumfOptions.SelectColor) {
SendDlgItemMessage(hwndDlg,IDC_COLOR_BACK,CPM_SETCOLOUR,0,WumfOptions.ColorBack);
SendDlgItemMessage(hwndDlg,IDC_COLOR_TEXT,CPM_SETCOLOUR,0,WumfOptions.ColorText);
}
- if(!ServiceExists(MS_POPUP_ADDPOPUPEX))
- {
+ if( !ServiceExists(MS_POPUP_ADDPOPUP)) {
DisableDelayOptions(hwndDlg);
break;
}
|