diff options
author | George Hazan <george.hazan@gmail.com> | 2014-03-15 18:02:40 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-03-15 18:02:40 +0000 |
commit | 06ed0d60176a4d3529999614825f3594b6cb54e9 (patch) | |
tree | e12b4593698d268b17f6668a5ab79f0d0a986827 /plugins/TabSRMM/src/msgdialog.cpp | |
parent | 20a2d3dc9f8ab2e2e8833a1c83cf2dd30f25aa8e (diff) |
huge clutch sawed out of the MC engine
git-svn-id: http://svn.miranda-ng.org/main/trunk@8627 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TabSRMM/src/msgdialog.cpp')
-rw-r--r-- | plugins/TabSRMM/src/msgdialog.cpp | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/plugins/TabSRMM/src/msgdialog.cpp b/plugins/TabSRMM/src/msgdialog.cpp index 9598cab24f..8d813a3817 100644 --- a/plugins/TabSRMM/src/msgdialog.cpp +++ b/plugins/TabSRMM/src/msgdialog.cpp @@ -3074,35 +3074,6 @@ quote_from_last: BB_CustomButtonClick(dat, idFrom, (HWND)wParam, 1);
break;
}
-
- if ((HWND)wParam == GetDlgItem(hwndDlg, IDC_NAME) && dat->hContact != 0) {
- GetCursorPos(&pt);
- HMENU hMC = BuildMCProtocolMenu(hwndDlg);
- if (hMC == NULL)
- break;
-
- int iSelection = TrackPopupMenu(hMC, TPM_RETURNCMD, pt.x, pt.y, 0, hwndDlg, NULL);
- if (iSelection < 1000 && iSelection >= 100) { // the "force" submenu...
- if (iSelection == 999) { // un-force
- if (CallService(MS_MC_UNFORCESENDCONTACT, dat->hContact, 0) == 0)
- db_set_dw(dat->hContact, SRMSGMOD_T, "tabSRMM_forced", -1);
- else
- _DebugPopup(dat->hContact, TranslateT("Unforce failed"));
- }
- else {
- if (CallService(MS_MC_FORCESENDCONTACTNUM, dat->hContact, (LPARAM)(iSelection - 100)) == 0)
- db_set_dw(dat->hContact, SRMSGMOD_T, "tabSRMM_forced", (DWORD)(iSelection - 100));
- else
- _DebugPopup(dat->hContact, TranslateT("The selected protocol cannot be forced at this time"));
- }
- }
- else if (iSelection >= 1000) // the "default" menu...
- db_mc_setDefaultNum(dat->hContact, iSelection - 1000);
-
- DestroyMenu(hMC);
- InvalidateRect(GetParent(hwndDlg), NULL, FALSE);
- return TRUE;
- }
}
break;
@@ -3186,21 +3157,6 @@ quote_from_last: DM_CheckAutoHide(dat, wParam, lParam);
return 0;
- // metacontact support
- case DM_UPDATEMETACONTACTINFO: // update the icon in the statusbar for the "most online" protocol
- {
- DWORD isForced;
- if ((isForced = M.GetDword(dat->hContact, "tabSRMM_forced", -1)) >= 0) {
- char szTemp[64];
- mir_snprintf(szTemp, sizeof(szTemp), "Status%d", isForced);
- if (db_get_w(dat->hContact, META_PROTO, szTemp, 0) == ID_STATUS_OFFLINE)
- SendMessage(hwndDlg, DM_ACTIVATETOOLTIP, IDC_MESSAGE,
- (LPARAM)TranslateT("Warning: you have selected a subprotocol for sending the following messages which is currently offline"));
- }
- SendMessage(hwndDlg, DM_UPDATEWINICON, 0, 0);
- }
- break;
-
case DM_IEVIEWOPTIONSCHANGED:
if (dat->hwndIEView)
SendMessage(hwndDlg, DM_REMAKELOG, 0, 0);
|