summaryrefslogtreecommitdiff
path: root/plugins/MenuItemEx/src
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/MenuItemEx/src')
-rw-r--r--plugins/MenuItemEx/src/options.cpp17
-rw-r--r--plugins/MenuItemEx/src/resource.h20
2 files changed, 19 insertions, 18 deletions
diff --git a/plugins/MenuItemEx/src/options.cpp b/plugins/MenuItemEx/src/options.cpp
index 061fa9af49..cf84d6daa6 100644
--- a/plugins/MenuItemEx/src/options.cpp
+++ b/plugins/MenuItemEx/src/options.cpp
@@ -1,6 +1,7 @@
#include "stdafx.h"
-struct {
+struct
+{
int idc;
int flag;
}
@@ -61,12 +62,12 @@ public:
bool OnInitDialog() override
{
for (auto &it : checkboxes) {
- CCtrlCheck &item = *(CCtrlCheck*)FindControl(it.idc);
+ CCtrlCheck &item = *(CCtrlCheck *)FindControl(it.idc);
item.SetState(m_flags & it.flag);
}
for (int i = 0; i < 4; i++) {
- CCtrlCheck &item = *(CCtrlCheck*)FindControl(checkboxes[i].idc);
+ CCtrlCheck &item = *(CCtrlCheck *)FindControl(checkboxes[i].idc);
CMStringW buffer;
buffer.Format(L"%s *", item.GetText());
item.SetText(buffer);
@@ -79,7 +80,7 @@ public:
uint32_t mod_flags = 0;
for (auto &it : checkboxes) {
- CCtrlCheck &item = *(CCtrlCheck*)FindControl(it.idc);
+ CCtrlCheck &item = *(CCtrlCheck *)FindControl(it.idc);
mod_flags |= item.GetState() ? it.flag : 0;
}
@@ -87,24 +88,24 @@ public:
return true;
}
- void onChange_Vis(CCtrlBase*)
+ void onChange_Vis(CCtrlBase *)
{
m_chkAlpha.Enable(m_chkVis.GetState());
}
- void onChange_Ignore(CCtrlBase*)
+ void onChange_Ignore(CCtrlBase *)
{
m_chkIgnoreHide.Enable(m_chkIgnore.GetState());
}
- void onChange_CopyID(CCtrlBase*)
+ void onChange_CopyID(CCtrlBase *)
{
m_chkCopyIDName.Enable(m_chkCopyID.GetState());
m_chkShowID.Enable(m_chkCopyID.GetState());
m_chkTrimID.Enable(m_chkCopyID.GetState() && m_chkShowID.GetState());
}
- void onChange_StatusMsg(CCtrlBase*)
+ void onChange_StatusMsg(CCtrlBase *)
{
m_chkSMName.Enable(m_chkStatusMsg.GetState());
}
diff --git a/plugins/MenuItemEx/src/resource.h b/plugins/MenuItemEx/src/resource.h
index 2cc96bb73b..c8c493cfaf 100644
--- a/plugins/MenuItemEx/src/resource.h
+++ b/plugins/MenuItemEx/src/resource.h
@@ -1,18 +1,18 @@
//{{NO_DEPENDENCIES}}
// Microsoft Visual C++ generated include file.
-// Used by resource.rc
+// Used by W:\miranda-ng\plugins\MenuItemEx\res\resource.rc
//
#define IDD_OPTIONS 101
#define IDD_AUTHREQ 103
-#define IDI_HIDE 110
-#define IDI_VISIBLE 111
-#define IDI_INVISIBLE 112
-#define IDI_COPYID 113
-#define IDI_PROTOCOL 116
-#define IDI_IGNORE 117
-#define IDI_SHOWINLIST 118
-#define IDI_COPYSTATUS 119
-#define IDI_COPYXSTATUS 120
+#define IDI_HIDE 110
+#define IDI_VISIBLE 111
+#define IDI_INVISIBLE 112
+#define IDI_COPYID 113
+#define IDI_PROTOCOL 116
+#define IDI_IGNORE 117
+#define IDI_SHOWINLIST 118
+#define IDI_COPYSTATUS 119
+#define IDI_COPYXSTATUS 120
#define IDI_COPYIP 121
#define IDI_BROWSE 122
#define IDI_MIRVER 123