summaryrefslogtreecommitdiff
path: root/plugins/SendScreenshotPlus/src
diff options
context:
space:
mode:
authorRené Schümann <white06tiger@gmail.com>2014-04-24 11:59:44 +0000
committerRené Schümann <white06tiger@gmail.com>2014-04-24 11:59:44 +0000
commit90ad600cb38a04c9272a3599c72d6559c822b155 (patch)
tree631934acbacece612e251c029ca1e572ef50561a /plugins/SendScreenshotPlus/src
parent7d1a43aa4818c8ce9a2bab686167f12db2f792d7 (diff)
- partially removed IDI_DEFAULT / ssDefault.ico as it doesn't seem to be of much use^^
git-svn-id: http://svn.miranda-ng.org/main/trunk@9067 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/SendScreenshotPlus/src')
-rw-r--r--plugins/SendScreenshotPlus/src/mir_icolib.cpp17
-rw-r--r--plugins/SendScreenshotPlus/src/resource.h2
2 files changed, 5 insertions, 14 deletions
diff --git a/plugins/SendScreenshotPlus/src/mir_icolib.cpp b/plugins/SendScreenshotPlus/src/mir_icolib.cpp
index 61e61f9c6e..acf1a545de 100644
--- a/plugins/SendScreenshotPlus/src/mir_icolib.cpp
+++ b/plugins/SendScreenshotPlus/src/mir_icolib.cpp
@@ -46,7 +46,7 @@ static ICODESC icoDesc[] =
{ ICO_COMMON_SSWINDOW2, LPGEN("Screenshot Icon2"), SECT_COMMON, IDI_MAIN, 0 },
{ ICO_COMMON_SSTARGET, LPGEN("Target Cursor"), SECT_COMMON, IDI_TARGET, 1 },
{ ICO_COMMON_SSMONITOR, LPGEN("Target Desktop"), SECT_COMMON, IDI_MONITOR, 1 },
- { ICO_COMMON_SSDEFAULT, LPGEN("Default"), SECT_COMMON, IDI_DEFAULT, 0 },
+ //{ ICO_COMMON_SSDEFAULT, LPGEN("Default"), SECT_COMMON, IDI_DEFAULT, 0 },
// overlays
// { ICO_BTN_OVERLAYON, LPGEN("Overlay on"), SECT_OVERLAY, IDI_OVERLAYON, 0 },
// { ICO_BTN_OVERLAYOFF, LPGEN("Overlay off"), SECT_OVERLAY, IDI_OVERLAYOFF, 0 },
@@ -88,7 +88,7 @@ static ICODESC icoDesc[] =
*
* @return This function returns the HANDLE of the icon item.
**/
-static HANDLE IcoLib_RegisterIconHandleEx(LPSTR szIconID, LPSTR szDescription, LPSTR szSection, LPTSTR szDefaultFile, int idIcon, int Size, HICON hDefIcon)
+static HANDLE IcoLib_RegisterIconHandleEx(LPSTR szIconID, LPSTR szDescription, LPSTR szSection, LPTSTR szDefaultFile, int idIcon, int Size)
{
HANDLE hIconHandle = NULL;
@@ -120,12 +120,7 @@ static HANDLE IcoLib_RegisterIconHandleEx(LPSTR szIconID, LPSTR szDescription, L
}
sid.ptszDefaultFile = szDefaultFile;
- if (sid.ptszDefaultFile && sid.ptszDefaultFile[0])
- sid.iDefaultIndex = -idIcon;
- else {
- sid.hDefaultIcon = hDefIcon;
- sid.iDefaultIndex = -1;
- }
+ sid.iDefaultIndex = -idIcon;
hIconHandle = Skin_AddIcon(&sid);
}
MIR_FREE(sid.ptszDescription);
@@ -148,12 +143,8 @@ void IcoLib_LoadModule()
{
LPTSTR szDefaultFile = _T("Plugins\\")_T(__FILENAME);
- // load default icon if required
- ghDefIcon = (HICON)LoadImage(hInst, MAKEINTRESOURCE(IDI_DEFAULT), IMAGE_ICON,
- GetSystemMetrics(SM_CXSMICON), GetSystemMetrics(SM_CYSMICON), 0);
-
for (int i = 0; i < SIZEOF(icoDesc); i++)
IcoLib_RegisterIconHandleEx(
icoDesc[i].pszName, icoDesc[i].pszDesc, icoDesc[i].pszSection,
- szDefaultFile, icoDesc[i].idResource, icoDesc[i].size, ghDefIcon);
+ szDefaultFile, icoDesc[i].idResource, icoDesc[i].size);
}
diff --git a/plugins/SendScreenshotPlus/src/resource.h b/plugins/SendScreenshotPlus/src/resource.h
index 0385d53f00..af67a83858 100644
--- a/plugins/SendScreenshotPlus/src/resource.h
+++ b/plugins/SendScreenshotPlus/src/resource.h
@@ -28,7 +28,7 @@
#define IDR_LICENSE 120
#define IDR_CREDIT 121
#define IDI_MAIN 190
-#define IDI_DEFAULT 191
+//#define IDI_DEFAULT 191
#define IDI_TARGET 192
#define IDI_MONITOR 193
#define IDI_HELP 194