diff options
author | George Hazan <george.hazan@gmail.com> | 2023-11-22 12:32:10 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2023-11-22 12:32:10 +0300 |
commit | 114e7ce32efdc1f4a33f8160efb5d5c797e45d3f (patch) | |
tree | af9a965410868e3cccd108d32dc2100d5577cf5e /src/mir_app | |
parent | ffdb84b18d41ef3b41b5f76849c249b70a1794e6 (diff) |
code cleaning
Diffstat (limited to 'src/mir_app')
-rw-r--r-- | src/mir_app/src/chat.h | 1 | ||||
-rw-r--r-- | src/mir_app/src/srmm_base.cpp | 12 |
2 files changed, 7 insertions, 6 deletions
diff --git a/src/mir_app/src/chat.h b/src/mir_app/src/chat.h index 1766669bc5..6248c15e8e 100644 --- a/src/mir_app/src/chat.h +++ b/src/mir_app/src/chat.h @@ -102,6 +102,7 @@ int RoomDoubleclicked(WPARAM wParam,LPARAM lParam); // options.c
void ChatOptionsInit(WPARAM wParam);
+void SrmmLogOptionsInit(WPARAM wParam);
int OptionsInit(void);
int OptionsUnInit(void);
diff --git a/src/mir_app/src/srmm_base.cpp b/src/mir_app/src/srmm_base.cpp index 5e152d3870..6647872d5e 100644 --- a/src/mir_app/src/srmm_base.cpp +++ b/src/mir_app/src/srmm_base.cpp @@ -652,13 +652,13 @@ void CSrmmBaseDialog::UpdateChatOptions() UpdateFilterButton();
MODULEINFO *mi = m_si->pMI;
- EnableWindow(m_btnBold.GetHwnd(), mi->bBold);
- EnableWindow(m_btnItalic.GetHwnd(), mi->bItalics);
- EnableWindow(m_btnUnderline.GetHwnd(), mi->bUnderline);
- EnableWindow(m_btnColor.GetHwnd(), mi->bColor);
- EnableWindow(m_btnBkColor.GetHwnd(), mi->bBkgColor);
+ m_btnBold.Enable(mi->bBold);
+ m_btnColor.Enable(mi->bColor);
+ m_btnItalic.Enable(mi->bItalics);
+ m_btnBkColor.Enable(mi->bBkgColor);
+ m_btnUnderline.Enable(mi->bUnderline);
if (m_si->iType == GCW_CHATROOM)
- EnableWindow(m_btnChannelMgr.GetHwnd(), mi->bChanMgr);
+ m_btnChannelMgr.Enable(mi->bChanMgr);
Resize();
}
|