diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2015-10-28 20:12:50 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2015-10-28 20:12:50 +0000 |
commit | 679b23b4d1c5b2d935085b199d9327bec8477378 (patch) | |
tree | 1ba71e9c6d153b777a9fb142d8b79c0ce8354582 /plugins/MirLua/src/mlua_options.cpp | |
parent | 13a2213b0aaf3778221bb4caf010f7696c57be30 (diff) |
MirLua:
- internal icons added to iconlib
- minor fixes
git-svn-id: http://svn.miranda-ng.org/main/trunk@15641 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MirLua/src/mlua_options.cpp')
-rw-r--r-- | plugins/MirLua/src/mlua_options.cpp | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/plugins/MirLua/src/mlua_options.cpp b/plugins/MirLua/src/mlua_options.cpp index e6bcbbd0c3..3aad7345cd 100644 --- a/plugins/MirLua/src/mlua_options.cpp +++ b/plugins/MirLua/src/mlua_options.cpp @@ -72,8 +72,8 @@ void CLuaOptions::OnInitDialog() m_scripts.SetExtendedListViewStyle(LVS_EX_SUBITEMIMAGES | LVS_EX_FULLROWSELECT | LVS_EX_CHECKBOXES | LVS_EX_INFOTIP);
HIMAGELIST hImageList = m_scripts.CreateImageList(LVSIL_SMALL);
- ImageList_AddIcon(hImageList, LoadIcon(g_hInstance, MAKEINTRESOURCE(IDI_OPEN)));
- ImageList_AddIcon(hImageList, LoadIcon(g_hInstance, MAKEINTRESOURCE(IDI_RELOAD)));
+ ImageList_AddIcon(hImageList, GetIcon(IDI_OPEN));
+ ImageList_AddIcon(hImageList, GetIcon(IDI_RELOAD));
TCHAR scriptDir[MAX_PATH], relativeScriptDir[MAX_PATH], header[MAX_PATH + 100];
FoldersGetCustomPathT(g_hCommonScriptFolder, scriptDir, _countof(scriptDir), VARST(COMMON_SCRIPTS_PATHT));
@@ -84,9 +84,9 @@ void CLuaOptions::OnInitDialog() m_scripts.AddColumn(0, _T("Script"), 420);
m_scripts.AddColumn(1, NULL, 32 - GetSystemMetrics(SM_CXVSCROLL));
-#ifdef DEBUG
+//#ifdef DEBUG
m_scripts.AddColumn(2, NULL, 32 - GetSystemMetrics(SM_CXVSCROLL));
-#endif
+//#endif
LoadScripts();
@@ -144,16 +144,14 @@ void CLuaOptions::OnScriptListClick(CCtrlListView::TEventInfo *evt) CMLuaScript* script = (CMLuaScript*)lvi.lParam;
if (lvi.iSubItem == 1)
- {
- ShellExecute(m_hwnd, NULL, lvi.pszText, NULL, script->GetFilePath(), SW_SHOWNORMAL);
- }
-#ifdef DEBUG
+ ShellExecute(m_hwnd, _T("Open"), script->GetFilePath(), NULL, NULL, SW_SHOWNORMAL);
+//#ifdef DEBUG
else if (lvi.iSubItem == 2)
{
script->Unload();
script->Load();
}
-#endif
+//#endif
mir_free(lvi.pszText);
}
|