diff options
author | George Hazan <george.hazan@gmail.com> | 2012-08-06 12:08:39 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-08-06 12:08:39 +0000 |
commit | 4207fda2535b6c1c1aa8e242da2de04ab40ba76b (patch) | |
tree | e3faf3288fac0cafd5ed8b60fb7824db798fa27b /plugins/PluginUpdater/src/Notifications.cpp | |
parent | da90f70ee92d2fcf13451ae40516c985f728a560 (diff) |
- added "Update Icons" option;
- removed some garbage from options dialog;
- modeless Apply Updates dialog
git-svn-id: http://svn.miranda-ng.org/main/trunk@1377 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/PluginUpdater/src/Notifications.cpp')
-rw-r--r-- | plugins/PluginUpdater/src/Notifications.cpp | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/plugins/PluginUpdater/src/Notifications.cpp b/plugins/PluginUpdater/src/Notifications.cpp index a85b0fa02e..bedbb36723 100644 --- a/plugins/PluginUpdater/src/Notifications.cpp +++ b/plugins/PluginUpdater/src/Notifications.cpp @@ -76,11 +76,11 @@ static INT_PTR CALLBACK PopupDlgProc2(HWND hDlg, UINT uMsg, WPARAM wParam, LPARA {
switch (uMsg) {
case WM_COMMAND:
- PopupAction(hDlg, MyOptions.LeftClickAction);
+ PopupAction(hDlg, PopupOptions.LeftClickAction);
break;
case WM_CONTEXTMENU:
- PopupAction(hDlg, MyOptions.RightClickAction);
+ PopupAction(hDlg, PopupOptions.RightClickAction);
break;
case UM_FREEPLUGINDATA:
@@ -142,7 +142,7 @@ void ShowPopup(HWND hDlg, LPCTSTR ptszTitle, LPCTSTR ptszText, int Number, int A pd.lchIcon = LoadSkinnedIcon(PopupsList[Number].Icon);
lstrcpyn(pd.lptzText, TranslateTS(ptszText), SIZEOF(pd.lptzText));
lstrcpyn(pd.lptzContactName, TranslateTS(ptszTitle), SIZEOF(pd.lptzContactName));
- switch (MyOptions.DefColors) {
+ switch (PopupOptions.DefColors) {
case byCOLOR_WINDOWS:
pd.colorBack = GetSysColor(COLOR_BTNFACE);
pd.colorText = GetSysColor(COLOR_WINDOWTEXT);
@@ -163,7 +163,7 @@ void ShowPopup(HWND hDlg, LPCTSTR ptszTitle, LPCTSTR ptszText, int Number, int A if (Number == 0)
pd.iSeconds = -1;
else
- pd.iSeconds = MyOptions.Timeout;
+ pd.iSeconds = PopupOptions.Timeout;
pd.hNotification = NULL;
pd.lpActions = pmpd->pa;
@@ -206,13 +206,6 @@ INT_PTR CALLBACK DlgDownloadPop(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lPar void DlgDownloadProc(FILEURL *pFileUrl, PopupDataText temp)
{
- lstrcpyn(tszDialogMsg, temp.Text, SIZEOF(tszDialogMsg));
- HWND hDlgDld = CreateDialog(hInst, MAKEINTRESOURCE(IDD_DOWNLOAD), NULL, DlgDownload);
-
- if (!DownloadFile(pFileUrl->tszDownloadURL, pFileUrl->tszDiskPath))
- ShowPopup(0, LPGENT("Plugin Updater"), LPGENT("An error occured while downloading the update."), 1, 0);
-
- DestroyWindow(hDlgDld);
}
void SelectAll(HWND hDlg, bool bEnable)
@@ -323,7 +316,7 @@ INT_PTR CALLBACK DlgUpdate(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam lvc.iSubItem = 1;
lvc.pszText = TranslateT("State");
- lvc.cx = 120; // width of column in pixels
+ lvc.cx = 120 - GetSystemMetrics(SM_CXVSCROLL); // width of column in pixels
ListView_InsertColumn(hwndList, 1, &lvc);
//enumerate plugins, fill in list
|