diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2014-12-16 17:13:42 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2014-12-16 17:13:42 +0000 |
commit | 086470f4191dcc3377ad0ad496d3c81f6e16bc01 (patch) | |
tree | 65f814a70a61fe4cd34bf61d9c876ebee355ec76 /plugins/MenuItemEx/src/options.cpp | |
parent | ae6a10ba2621f5dbd9f50ab36d819a8cd160d741 (diff) |
MenuItemEx: changed warning lavel to w4
git-svn-id: http://svn.miranda-ng.org/main/trunk@11471 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MenuItemEx/src/options.cpp')
-rw-r--r-- | plugins/MenuItemEx/src/options.cpp | 78 |
1 files changed, 39 insertions, 39 deletions
diff --git a/plugins/MenuItemEx/src/options.cpp b/plugins/MenuItemEx/src/options.cpp index 5d0d978232..cfbb1ae6e2 100644 --- a/plugins/MenuItemEx/src/options.cpp +++ b/plugins/MenuItemEx/src/options.cpp @@ -8,32 +8,32 @@ struct { int flag;
}
static const checkboxes[] = {
- { IDC_COPYID, VF_CID },
- { IDC_STATUSMSG, VF_STAT },
- { IDC_COPYIP, VF_CIP },
- { IDC_COPYMIRVER, VF_CMV },
- { IDC_VIS, VF_VS },
- { IDC_SHOWALPHAICONS, VF_SAI },
- { IDC_HIDE, VF_HFL },
- { IDC_IGNORE, VF_IGN },
- { IDC_IGNOREHIDE, VF_IGNH },
- { IDC_PROTOS, VF_PROTO },
- { IDC_ADDED, VF_ADD },
- { IDC_AUTHREQ, VF_REQ },
- { IDC_SHOWID, VF_SHOWID },
- { IDC_COPYIDNAME, VF_CIDN },
- { IDC_RECVFILES, VF_RECV },
- { IDC_SMNAME, VF_SMNAME },
- { IDC_TRIMID, VF_TRIMID }
+ { IDC_COPYID, VF_CID },
+ { IDC_STATUSMSG, VF_STAT },
+ { IDC_COPYIP, VF_CIP },
+ { IDC_COPYMIRVER, VF_CMV },
+ { IDC_VIS, VF_VS },
+ { IDC_SHOWALPHAICONS, VF_SAI },
+ { IDC_HIDE, VF_HFL },
+ { IDC_IGNORE, VF_IGN },
+ { IDC_IGNOREHIDE, VF_IGNH },
+ { IDC_PROTOS, VF_PROTO },
+ { IDC_ADDED, VF_ADD },
+ { IDC_AUTHREQ, VF_REQ },
+ { IDC_SHOWID, VF_SHOWID },
+ { IDC_COPYIDNAME, VF_CIDN },
+ { IDC_RECVFILES, VF_RECV },
+ { IDC_SMNAME, VF_SMNAME },
+ { IDC_TRIMID, VF_TRIMID }
};
-INT_PTR CALLBACK OptionsProc(HWND hdlg,UINT msg,WPARAM wparam,LPARAM lparam)
+INT_PTR CALLBACK OptionsProc(HWND hdlg, UINT msg, WPARAM wparam, LPARAM lparam)
{
DWORD flags = db_get_dw(NULL, MODULENAME, "flags", vf_default);
- TCHAR buffer[64] = {0};
+ TCHAR buffer[64] = { 0 };
int i;
-
- switch(msg) {
+
+ switch (msg) {
case WM_INITDIALOG:
TranslateDialogDefault(hdlg);
@@ -58,19 +58,19 @@ INT_PTR CALLBACK OptionsProc(HWND hdlg,UINT msg,WPARAM wparam,LPARAM lparam) SendMessage(hdlg, WM_USER + 50, 0, 0);
return 0;
- case WM_USER+50:
- EnableWindow(GetDlgItem(hdlg,IDC_SHOWALPHAICONS), IsDlgButtonChecked(hdlg,IDC_VIS) == BST_CHECKED);
- EnableWindow(GetDlgItem(hdlg,IDC_IGNOREHIDE), IsDlgButtonChecked(hdlg,IDC_IGNORE) == BST_CHECKED);
- EnableWindow(GetDlgItem(hdlg,IDC_COPYIDNAME), IsDlgButtonChecked(hdlg,IDC_COPYID) == BST_CHECKED);
- EnableWindow(GetDlgItem(hdlg,IDC_SHOWID), IsDlgButtonChecked(hdlg,IDC_COPYID) == BST_CHECKED);
- EnableWindow(GetDlgItem(hdlg,IDC_TRIMID), (IsDlgButtonChecked(hdlg,IDC_COPYID) == BST_CHECKED && IsDlgButtonChecked(hdlg,IDC_SHOWID) == BST_CHECKED));
- EnableWindow(GetDlgItem(hdlg,IDC_SMNAME), IsDlgButtonChecked(hdlg,IDC_STATUSMSG) == BST_CHECKED);
+ case WM_USER + 50:
+ EnableWindow(GetDlgItem(hdlg, IDC_SHOWALPHAICONS), IsDlgButtonChecked(hdlg, IDC_VIS) == BST_CHECKED);
+ EnableWindow(GetDlgItem(hdlg, IDC_IGNOREHIDE), IsDlgButtonChecked(hdlg, IDC_IGNORE) == BST_CHECKED);
+ EnableWindow(GetDlgItem(hdlg, IDC_COPYIDNAME), IsDlgButtonChecked(hdlg, IDC_COPYID) == BST_CHECKED);
+ EnableWindow(GetDlgItem(hdlg, IDC_SHOWID), IsDlgButtonChecked(hdlg, IDC_COPYID) == BST_CHECKED);
+ EnableWindow(GetDlgItem(hdlg, IDC_TRIMID), (IsDlgButtonChecked(hdlg, IDC_COPYID) == BST_CHECKED && IsDlgButtonChecked(hdlg, IDC_SHOWID) == BST_CHECKED));
+ EnableWindow(GetDlgItem(hdlg, IDC_SMNAME), IsDlgButtonChecked(hdlg, IDC_STATUSMSG) == BST_CHECKED);
return 1;
case WM_NOTIFY:
- switch(((LPNMHDR)lparam)->code){
+ switch (((LPNMHDR)lparam)->code){
case PSN_APPLY:
- DWORD mod_flags=0;
+ DWORD mod_flags = 0;
for (i = 0; i < SIZEOF(checkboxes); i++)
mod_flags |= IsDlgButtonChecked(hdlg, checkboxes[i].idc) ? checkboxes[i].flag : 0;
@@ -81,13 +81,13 @@ INT_PTR CALLBACK OptionsProc(HWND hdlg,UINT msg,WPARAM wparam,LPARAM lparam) break;
case WM_COMMAND:
- if (HIWORD(wparam)==BN_CLICKED && GetFocus()==(HWND)lparam) {
- SendMessage(GetParent(hdlg),PSM_CHANGED,0,0);
+ if (HIWORD(wparam) == BN_CLICKED && GetFocus() == (HWND)lparam) {
+ SendMessage(GetParent(hdlg), PSM_CHANGED, 0, 0);
if (LOWORD(wparam) == IDC_VIS ||
- LOWORD(wparam) == IDC_IGNORE ||
- LOWORD(wparam) == IDC_COPYID ||
- LOWORD(wparam) == IDC_STATUSMSG ||
- LOWORD(wparam) == IDC_SHOWID)
+ LOWORD(wparam) == IDC_IGNORE ||
+ LOWORD(wparam) == IDC_COPYID ||
+ LOWORD(wparam) == IDC_STATUSMSG ||
+ LOWORD(wparam) == IDC_SHOWID)
{
SendMessage(hdlg, WM_USER + 50, 0, 0);
}
@@ -95,13 +95,13 @@ INT_PTR CALLBACK OptionsProc(HWND hdlg,UINT msg,WPARAM wparam,LPARAM lparam) return 0;
case WM_CLOSE:
- EndDialog(hdlg,0);
+ EndDialog(hdlg, 0);
return 0;
}
return 0;
}
-int OptionsInit(WPARAM wparam,LPARAM lparam)
+int OptionsInit(WPARAM wparam, LPARAM)
{
OPTIONSDIALOGPAGE odp = { sizeof(odp) };
odp.position = 955000000;
@@ -111,6 +111,6 @@ int OptionsInit(WPARAM wparam,LPARAM lparam) odp.pfnDlgProc = OptionsProc;
odp.pszGroup = LPGEN("Customize");
odp.flags = ODPF_BOLDGROUPS;
- Options_AddPage(wparam,&odp);
+ Options_AddPage(wparam, &odp);
return 0;
}
|