summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2017-07-31 11:02:34 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-07-31 11:02:34 +0300
commit2a68715604212f62d96950341de9fa172c62d8c2 (patch)
treed34bdf40a1a5ec28142c8fc88be47ff599e6b626
parent4cced832c6a4331bdbf8d6e4e80e96b040286686 (diff)
LPGEN to be applied to the string itself
-rw-r--r--include/m_message.h5
-rw-r--r--src/mir_app/src/srmm_base.cpp4
2 files changed, 4 insertions, 5 deletions
diff --git a/include/m_message.h b/include/m_message.h
index a5454c3138..23e6f0ca63 100644
--- a/include/m_message.h
+++ b/include/m_message.h
@@ -26,8 +26,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#define M_MESSAGE_H__ 1
#include <m_database.h>
-
-extern int hLangpack;
+#include <m_langpack.h>
/////////////////////////////////////////////////////////////////////////////////////////
// brings up the send message dialog for a contact
@@ -204,7 +203,7 @@ struct StatusIconClickData
// srmm toolbar icons' support
// default section for all SRMM toolbar hotkeys
-#define BB_HK_SECTION "Message window toolbar"
+#define BB_HK_SECTION LPGEN("Message window toolbar")
// button state flags
#define BBSF_HIDDEN (1<<0)
diff --git a/src/mir_app/src/srmm_base.cpp b/src/mir_app/src/srmm_base.cpp
index f3f8b7d1db..77e611242e 100644
--- a/src/mir_app/src/srmm_base.cpp
+++ b/src/mir_app/src/srmm_base.cpp
@@ -176,7 +176,7 @@ LRESULT CSrmmBaseDialog::WndProc_Log(UINT msg, WPARAM wParam, LPARAM lParam)
case WM_SYSKEYDOWN:
if (!(GetKeyState(VK_RMENU) & 0x8000)) {
MSG message = { m_hwnd, msg, wParam, lParam };
- LRESULT iButtonFrom = Hotkey_Check(&message, LPGEN(BB_HK_SECTION));
+ LRESULT iButtonFrom = Hotkey_Check(&message, BB_HK_SECTION);
if (iButtonFrom) {
Srmm_ProcessToolbarHotkey(m_hContact, iButtonFrom, m_hwnd);
return TRUE;
@@ -340,7 +340,7 @@ LRESULT CSrmmBaseDialog::WndProc_Message(UINT msg, WPARAM wParam, LPARAM lParam)
case WM_SYSKEYDOWN:
if (!(GetKeyState(VK_RMENU) & 0x8000)) {
MSG message = { m_hwnd, msg, wParam, lParam };
- LRESULT iButtonFrom = Hotkey_Check(&message, LPGEN(BB_HK_SECTION));
+ LRESULT iButtonFrom = Hotkey_Check(&message, BB_HK_SECTION);
if (iButtonFrom) {
Srmm_ProcessToolbarHotkey(m_hContact, iButtonFrom, m_hwnd);
return TRUE;