summaryrefslogtreecommitdiff
path: root/src/mir_app
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2017-12-14 13:57:26 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-12-14 13:57:26 +0300
commitca17ed773e77c2e8fcd410f15902ec10b9cacf2d (patch)
tree0156458edbb12736d2d1a1c214efce44f554c14c /src/mir_app
parent49550ee2fedc4a2f339612e1fe9e6ad4173fa6bc (diff)
final fix for #1030
Diffstat (limited to 'src/mir_app')
-rw-r--r--src/mir_app/src/srmm_base.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/mir_app/src/srmm_base.cpp b/src/mir_app/src/srmm_base.cpp
index 5555b430a5..a1c7a6c595 100644
--- a/src/mir_app/src/srmm_base.cpp
+++ b/src/mir_app/src/srmm_base.cpp
@@ -337,6 +337,23 @@ EXTERN_C MIR_APP_DLL(LRESULT) CALLBACK stubMessageProc(HWND hwnd, UINT msg, WPAR
LRESULT CSrmmBaseDialog::WndProc_Message(UINT msg, WPARAM wParam, LPARAM lParam)
{
+ if (msg == WM_CHAR) {
+ switch (wParam) {
+ case 0x02:
+ if (m_btnBold.Enabled())
+ return 1;
+ break;
+ case 0x09:
+ if (m_btnItalic.Enabled())
+ return 1;
+ break;
+ case 0x15:
+ if (m_btnUnderline.Enabled())
+ return 1;
+ break;
+ }
+ }
+
LRESULT res = mir_callNextSubclass(m_message.GetHwnd(), stubMessageProc, msg, wParam, lParam);
switch (msg) {
case WM_GETDLGCODE: