diff options
author | George Hazan <ghazan@miranda.im> | 2019-03-07 18:48:03 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2019-03-07 22:40:54 +0300 |
commit | fab3905d91890102046dcc4554721991ae8ff413 (patch) | |
tree | 7514ac3e6739bf09447e9ff5c0926fee7bfe8155 /plugins/HistorySweeperLight/src/options.cpp | |
parent | 4138d31dd4609d4c29e7bd0dd8dcdedf5f3245b6 (diff) |
Skin_GetProtoIcon - new function to retrieve status icon's handle
Diffstat (limited to 'plugins/HistorySweeperLight/src/options.cpp')
-rw-r--r-- | plugins/HistorySweeperLight/src/options.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/HistorySweeperLight/src/options.cpp b/plugins/HistorySweeperLight/src/options.cpp index e8fd5fdffa..314cfb43d1 100644 --- a/plugins/HistorySweeperLight/src/options.cpp +++ b/plugins/HistorySweeperLight/src/options.cpp @@ -168,20 +168,20 @@ void SaveSettings(HWND hwndDlg) sid.szModule = MODULENAME;
sid.dwId = 0;
sid.hIcon = LoadIconEx("actG");
- if (st == 0) sid.szTooltip = LPGEN("Keep all events");
- else if (st == 1) sid.szTooltip = LPGEN(time_stamp_strings[g_plugin.getByte("StartupShutdownOlder", 0)]);
- else if (st == 2) sid.szTooltip = LPGEN(keep_strings[g_plugin.getByte("StartupShutdownKeep", 0)]);
- else if (st == 3) sid.szTooltip = LPGEN("Delete all events");
+ if (st == 0) sid.szTooltip.a = LPGEN("Keep all events");
+ else if (st == 1) sid.szTooltip.a = LPGEN(time_stamp_strings[g_plugin.getByte("StartupShutdownOlder", 0)]);
+ else if (st == 2) sid.szTooltip.a = LPGEN(keep_strings[g_plugin.getByte("StartupShutdownKeep", 0)]);
+ else if (st == 3) sid.szTooltip.a = LPGEN("Delete all events");
Srmm_ModifyIcon(NULL, &sid);
sid.dwId = 1;
sid.hIcon = LoadIconEx("act1");
- sid.szTooltip = time_stamp_strings[g_plugin.getByte("StartupShutdownOlder", 0)];
+ sid.szTooltip.a = time_stamp_strings[g_plugin.getByte("StartupShutdownOlder", 0)];
Srmm_ModifyIcon(NULL, &sid);
sid.dwId = 2;
sid.hIcon = LoadIconEx("act2");
- sid.szTooltip = keep_strings[g_plugin.getByte("StartupShutdownKeep", 0)];
+ sid.szTooltip.a = keep_strings[g_plugin.getByte("StartupShutdownKeep", 0)];
Srmm_ModifyIcon(NULL, &sid);
}
|