summaryrefslogtreecommitdiff
path: root/plugins/Import/src
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-09-20 17:22:05 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-09-20 17:22:05 +0000
commite54a5dbe7727ef0de01172b25eff813e45bf6107 (patch)
tree278d518b5510f9dad6705bc11bd83581cf5b3eb8 /plugins/Import/src
parent062117e053961ddce50bf425bc33b7eef7c033ae (diff)
fix for the import icon
git-svn-id: http://svn.miranda-ng.org/main/trunk@1609 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Import/src')
-rw-r--r--plugins/Import/src/import.h2
-rw-r--r--plugins/Import/src/main.cpp5
-rw-r--r--plugins/Import/src/wizard.cpp2
3 files changed, 7 insertions, 2 deletions
diff --git a/plugins/Import/src/import.h b/plugins/Import/src/import.h
index da42985a32..738fc76bfa 100644
--- a/plugins/Import/src/import.h
+++ b/plugins/Import/src/import.h
@@ -50,6 +50,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#include <m_protocols.h>
#include <m_protosvc.h>
#include <m_protomod.h>
+#include <m_icolib.h>
#include <m_utils.h>
#include <m_findadd.h>
#include <m_clist.h>
@@ -117,6 +118,7 @@ BOOL IsDuplicateEvent(HANDLE hContact, DBEVENTINFO dbei);
int CreateGroup(const TCHAR* name, HANDLE hContact);
extern HINSTANCE hInst;
+extern HANDLE hIcoHandle;
extern HWND hdlgProgress;
extern void (*DoImport)(HWND);
extern int nImportOption;
diff --git a/plugins/Import/src/main.cpp b/plugins/Import/src/main.cpp
index 564766ce9e..025ad8ef4d 100644
--- a/plugins/Import/src/main.cpp
+++ b/plugins/Import/src/main.cpp
@@ -32,6 +32,7 @@ int nCustomOptions;
static HANDLE hImportService = NULL;
HINSTANCE hInst;
+HANDLE hIcoHandle;
INT_PTR CALLBACK WizardDlgProc(HWND hdlg, UINT message, WPARAM wParam, LPARAM lParam);
static HWND hwndWizard = NULL;
@@ -113,11 +114,13 @@ extern "C" __declspec(dllexport) int Load(void)
mir_getLP( &pluginInfo );
hImportService = CreateServiceFunction(IMPORT_SERVICE, ImportCommand);
+
+ hIcoHandle = IcoLib_Register("import_main", "Import", LPGEN("Import..."), IDI_IMPORT);
CLISTMENUITEM mi;
ZeroMemory(&mi, sizeof(mi));
mi.cbSize = sizeof(mi);
- mi.icolibItem = IcoLib_Register("import_main", "Import", LPGEN("Import..."), IDI_IMPORT);
+ mi.icolibItem = hIcoHandle;
mi.pszName = LPGEN("&Import...");
mi.position = 500050000;
mi.pszService = IMPORT_SERVICE;
diff --git a/plugins/Import/src/wizard.cpp b/plugins/Import/src/wizard.cpp
index bd92adeb6b..92e411a145 100644
--- a/plugins/Import/src/wizard.cpp
+++ b/plugins/Import/src/wizard.cpp
@@ -101,7 +101,7 @@ INT_PTR CALLBACK WizardDlgProc(HWND hdlg, UINT message, WPARAM wParam, LPARAM lP
SetWindowPos(hwndPage, 0, 0, 0, 0, 0, SWP_NOZORDER|SWP_NOSIZE);
ShowWindow(hwndPage, SW_SHOW);
ShowWindow(hdlg, SW_SHOW);
- SendMessage(hdlg, WM_SETICON, ICON_BIG, (LPARAM)LoadIcon(hInst,MAKEINTRESOURCE(IDI_IMPORT)));
+ SendMessage(hdlg, WM_SETICON, ICON_BIG, (LPARAM)Skin_GetIconByHandle(hIcoHandle));
return TRUE;
case WIZM_GOTOPAGE: