diff options
author | George Hazan <george.hazan@gmail.com> | 2012-09-20 17:22:05 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-09-20 17:22:05 +0000 |
commit | e54a5dbe7727ef0de01172b25eff813e45bf6107 (patch) | |
tree | 278d518b5510f9dad6705bc11bd83581cf5b3eb8 /plugins/Import/src/main.cpp | |
parent | 062117e053961ddce50bf425bc33b7eef7c033ae (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/main.cpp')
-rw-r--r-- | plugins/Import/src/main.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
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;
|