diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2015-02-21 21:19:12 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2015-02-21 21:19:12 +0000 |
commit | b84f891f0dac03a170637a1cf54bd1e25a87eb1f (patch) | |
tree | 36c797c65524fa2d4a1ae71921a1b987063f7403 /plugins/TabSRMM/src/modplus.cpp | |
parent | 4ba2455da24ecbe9f0c623945e7add2696cdc81b (diff) |
code formatting
git-svn-id: http://svn.miranda-ng.org/main/trunk@12236 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TabSRMM/src/modplus.cpp')
-rw-r--r-- | plugins/TabSRMM/src/modplus.cpp | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/plugins/TabSRMM/src/modplus.cpp b/plugins/TabSRMM/src/modplus.cpp index 42dca25d9d..b106517789 100644 --- a/plugins/TabSRMM/src/modplus.cpp +++ b/plugins/TabSRMM/src/modplus.cpp @@ -101,27 +101,27 @@ static int CustomButtonPressed(WPARAM wParam, LPARAM lParam) switch (state) {
case 1:
- {
- int menulimit = M.GetByte("tabmodplus", "MenuCount", 0);
- if (menulimit == 0)
- break;
+ {
+ int menulimit = M.GetByte("tabmodplus", "MenuCount", 0);
+ if (menulimit == 0)
+ break;
- HMENU hMenu = CreatePopupMenu();
+ HMENU hMenu = CreatePopupMenu();
- for (int menunum = 0; menunum < menulimit; menunum++) {
- pszMenu[menunum] = getMenuEntry(menunum);
- AppendMenu(hMenu, MF_STRING, menunum + 1, pszMenu[menunum]);
- }
+ for (int menunum = 0; menunum < menulimit; menunum++) {
+ pszMenu[menunum] = getMenuEntry(menunum);
+ AppendMenu(hMenu, MF_STRING, menunum + 1, pszMenu[menunum]);
+ }
- int res = TrackPopupMenu(hMenu, TPM_RETURNCMD, cbcd->pt.x, cbcd->pt.y, 0, cbcd->hwndFrom, NULL);
- if (res == 0)
- break;
+ int res = TrackPopupMenu(hMenu, TPM_RETURNCMD, cbcd->pt.x, cbcd->pt.y, 0, cbcd->hwndFrom, NULL);
+ if (res == 0)
+ break;
- bufSize = textlenght + mir_tstrlen(pszMenu[res - 1]) + 2;
- pszFormatedText = (TCHAR*)_alloca(bufSize*sizeof(TCHAR));
- mir_sntprintf(pszFormatedText, bufSize, pszMenu[res-1], pszText);
- }
- break;
+ bufSize = textlenght + mir_tstrlen(pszMenu[res - 1]) + 2;
+ pszFormatedText = (TCHAR*)_alloca(bufSize*sizeof(TCHAR));
+ mir_sntprintf(pszFormatedText, bufSize, pszMenu[res - 1], pszText);
+ }
+ break;
case 2:
SendDlgItemMessage(cbcd->hwndFrom, IDC_MESSAGE, EM_GETSELTEXT, 0, (LPARAM)pszText);
|