From 68d3fd47bb9b75e65859d14199ffee01f16ac9a7 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 10 Feb 2014 20:47:51 +0000 Subject: HCONTACT is not needed anymore git-svn-id: http://svn.miranda-ng.org/main/trunk@8086 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Quotes/src/SettingsDlg.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'plugins/Quotes/src/SettingsDlg.cpp') diff --git a/plugins/Quotes/src/SettingsDlg.cpp b/plugins/Quotes/src/SettingsDlg.cpp index e52be731bd..e100401ece 100644 --- a/plugins/Quotes/src/SettingsDlg.cpp +++ b/plugins/Quotes/src/SettingsDlg.cpp @@ -126,10 +126,10 @@ namespace struct CSettingWindowParam { - CSettingWindowParam(HCONTACT hContact) : m_hContact(hContact),m_pPopupSettings(NULL){} + CSettingWindowParam(MCONTACT hContact) : m_hContact(hContact),m_pPopupSettings(NULL){} ~CSettingWindowParam(){delete m_pPopupSettings;} - HCONTACT m_hContact; + MCONTACT m_hContact; CPopupSettings* m_pPopupSettings; }; @@ -268,7 +268,7 @@ namespace { case WM_INITDIALOG: { - HCONTACT hContact = HCONTACT(lp); + MCONTACT hContact = MCONTACT(lp); TranslateDialogDefault(hWnd); HANDLE hWL = CModuleInfo::GetInstance().GetWindowList(WINDOW_PREFIX_SETTINGS,false); @@ -393,7 +393,7 @@ namespace case IDOK: { CSettingWindowParam* pParam = get_param(hWnd); - HCONTACT hContact = pParam->m_hContact; + MCONTACT hContact = pParam->m_hContact; bool bUseContactSpec = 1 == ::IsDlgButtonChecked(hWnd,IDC_CHECK_CONTACT_SPECIFIC); @@ -507,7 +507,7 @@ namespace } -void ShowSettingsDlg(HCONTACT hContact) +void ShowSettingsDlg(MCONTACT hContact) { HANDLE hWL = CModuleInfo::GetInstance().GetWindowList(WINDOW_PREFIX_SETTINGS,true); assert(hWL); @@ -933,7 +933,7 @@ COLORREF CPopupSettings::GetDefColourText() return ::GetSysColor(COLOR_BTNTEXT); } -void CPopupSettings::InitForContact(HCONTACT hContact) +void CPopupSettings::InitForContact(MCONTACT hContact) { BYTE m = db_get_b(hContact,QUOTES_PROTOCOL_NAME,DB_STR_QUOTE_POPUP_COLOUR_MODE,static_cast(m_modeColour)); if(m >= CPopupSettings::colourDefault && m <= CPopupSettings::colourUserDefined) @@ -953,7 +953,7 @@ void CPopupSettings::InitForContact(HCONTACT hContact) m_bUseHistory = 1 == db_get_b(hContact,QUOTES_PROTOCOL_NAME,DB_STR_QUOTE_POPUP_HISTORY_FLAG,m_bUseHistory); } -void CPopupSettings::SaveForContact(HCONTACT hContact)const +void CPopupSettings::SaveForContact(MCONTACT hContact)const { db_set_b(hContact,QUOTES_PROTOCOL_NAME,DB_STR_QUOTE_POPUP_COLOUR_MODE,static_cast(m_modeColour)); db_set_dw(hContact,QUOTES_PROTOCOL_NAME,DB_STR_QUOTE_POPUP_COLOUR_BK,m_rgbBkg); @@ -1088,7 +1088,7 @@ tstring GenerateLogFileName(const tstring& rsLogFilePattern, return sPath; } -tstring GetContactLogFileName(HCONTACT hContact) +tstring GetContactLogFileName(MCONTACT hContact) { tstring result; @@ -1113,7 +1113,7 @@ tstring GetContactLogFileName(HCONTACT hContact) return result; } -tstring GetContactName(HCONTACT hContact) +tstring GetContactName(MCONTACT hContact) { tstring sDescription = Quotes_DBGetStringT(hContact,QUOTES_PROTOCOL_NAME,DB_STR_QUOTE_DESCRIPTION); if(sDescription.empty()) -- cgit v1.2.3