From 8e87b243ac6adf4d6e179d6453d46c4211e6baa3 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 16 Jun 2013 20:46:48 +0000 Subject: switch to the library ProtoBroadcastAck for Jabber, MSN & YAHOO git-svn-id: http://svn.miranda-ng.org/main/trunk@4992 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/JabberG/src/jabber_disco.cpp | 63 ++++++++++++++++------------------ 1 file changed, 29 insertions(+), 34 deletions(-) (limited to 'protocols/JabberG/src/jabber_disco.cpp') diff --git a/protocols/JabberG/src/jabber_disco.cpp b/protocols/JabberG/src/jabber_disco.cpp index be9afd0603..2aff62d257 100644 --- a/protocols/JabberG/src/jabber_disco.cpp +++ b/protocols/JabberG/src/jabber_disco.cpp @@ -746,40 +746,35 @@ int CJabberDlgDiscovery::Resizer(UTILRESIZECONTROL *urc) RECT rc; switch (urc->wId) { - case IDC_COMBO_JID: - { - GetWindowRect(GetDlgItem(m_hwnd, urc->wId), &rc); - urc->rcItem.right += (urc->dlgNewSize.cx - urc->dlgOriginalSize.cx) / 2; - urc->rcItem.bottom = urc->rcItem.top + rc.bottom - rc.top; - return 0; - } - case IDC_TXT_NODELABEL: - { - urc->rcItem.left += (urc->dlgNewSize.cx - urc->dlgOriginalSize.cx) / 2; - urc->rcItem.right += (urc->dlgNewSize.cx - urc->dlgOriginalSize.cx) / 2; - return 0; - } - case IDC_COMBO_NODE: - { - GetWindowRect(GetDlgItem(m_hwnd, urc->wId), &rc); - urc->rcItem.left += (urc->dlgNewSize.cx - urc->dlgOriginalSize.cx) / 2; - urc->rcItem.right += urc->dlgNewSize.cx - urc->dlgOriginalSize.cx; - urc->rcItem.bottom = urc->rcItem.top + rc.bottom - rc.top; - return 0; - } - case IDC_BUTTON_BROWSE: - return RD_ANCHORX_RIGHT|RD_ANCHORY_TOP; - - case IDC_TREE_DISCO: - return RD_ANCHORX_WIDTH|RD_ANCHORY_HEIGHT; - - case IDC_TXT_FILTER: - return RD_ANCHORX_LEFT|RD_ANCHORY_BOTTOM; - case IDC_TXT_FILTERTEXT: - return RD_ANCHORX_WIDTH|RD_ANCHORY_BOTTOM; - case IDC_BTN_FILTERAPPLY: - case IDC_BTN_FILTERRESET: - return RD_ANCHORX_RIGHT|RD_ANCHORY_BOTTOM; + case IDC_COMBO_JID: + GetWindowRect(GetDlgItem(m_hwnd, urc->wId), &rc); + urc->rcItem.right += (urc->dlgNewSize.cx - urc->dlgOriginalSize.cx) / 2; + urc->rcItem.bottom = urc->rcItem.top + rc.bottom - rc.top; + return 0; + + case IDC_TXT_NODELABEL: + urc->rcItem.left += (urc->dlgNewSize.cx - urc->dlgOriginalSize.cx) / 2; + urc->rcItem.right += (urc->dlgNewSize.cx - urc->dlgOriginalSize.cx) / 2; + return 0; + + case IDC_COMBO_NODE: + GetWindowRect(GetDlgItem(m_hwnd, urc->wId), &rc); + urc->rcItem.left += (urc->dlgNewSize.cx - urc->dlgOriginalSize.cx) / 2; + urc->rcItem.right += urc->dlgNewSize.cx - urc->dlgOriginalSize.cx; + urc->rcItem.bottom = urc->rcItem.top + rc.bottom - rc.top; + return 0; + + case IDC_BUTTON_BROWSE: + return RD_ANCHORX_RIGHT|RD_ANCHORY_TOP; + case IDC_TREE_DISCO: + return RD_ANCHORX_WIDTH|RD_ANCHORY_HEIGHT; + case IDC_TXT_FILTER: + return RD_ANCHORX_LEFT|RD_ANCHORY_BOTTOM; + case IDC_TXT_FILTERTEXT: + return RD_ANCHORX_WIDTH|RD_ANCHORY_BOTTOM; + case IDC_BTN_FILTERAPPLY: + case IDC_BTN_FILTERRESET: + return RD_ANCHORX_RIGHT|RD_ANCHORY_BOTTOM; } return CSuper::Resizer(urc); } -- cgit v1.2.3