diff options
Diffstat (limited to 'plugins/Quotes/src')
| -rw-r--r-- | plugins/Quotes/src/CommonOptionDlg.cpp | 4 | ||||
| -rw-r--r-- | plugins/Quotes/src/CurrencyConverter.cpp | 14 | ||||
| -rw-r--r-- | plugins/Quotes/src/QuotesProviderFinance.cpp | 2 | ||||
| -rw-r--r-- | plugins/Quotes/src/QuotesProviderGoogle.cpp | 16 | 
4 files changed, 18 insertions, 18 deletions
diff --git a/plugins/Quotes/src/CommonOptionDlg.cpp b/plugins/Quotes/src/CommonOptionDlg.cpp index c60621a3dc..df87f770ba 100644 --- a/plugins/Quotes/src/CommonOptionDlg.cpp +++ b/plugins/Quotes/src/CommonOptionDlg.cpp @@ -178,7 +178,7 @@ void CommonOptionDlgProc(HWND hWnd,UINT msg,WPARAM wp,LPARAM lp,CCommonDlgProcDa  				{
  					BOOL bOk = FALSE;
  					UINT nRefreshRate = ::GetDlgItemInt(hWnd,IDC_EDIT_REFRESH_RATE,&bOk,FALSE);
 -					ERefreshRateType nType = static_cast<ERefreshRateType>(::SendMessage(::GetDlgItem(hWnd,IDC_COMBO_REFRESH_RATE),CB_GETCURSEL,0,0));
 +					ERefreshRateType nType = static_cast<ERefreshRateType>(::SendDlgItemMessage(hWnd, IDC_COMBO_REFRESH_RATE, CB_GETCURSEL, 0, 0));
  					switch(nType)
  					{
  					default:
 @@ -223,7 +223,7 @@ void CommonOptionDlgProc(HWND hWnd,UINT msg,WPARAM wp,LPARAM lp,CCommonDlgProcDa  					BOOL bOk = FALSE;
  					UINT nRefreshRate = ::GetDlgItemInt(hWnd,IDC_EDIT_REFRESH_RATE,&bOk,FALSE);
  					assert(TRUE == bOk);
 -					ERefreshRateType nType = static_cast<ERefreshRateType>(::SendMessage(::GetDlgItem(hWnd,IDC_COMBO_REFRESH_RATE),CB_GETCURSEL,0,0));
 +					ERefreshRateType nType = static_cast<ERefreshRateType>(::SendDlgItemMessage(hWnd, IDC_COMBO_REFRESH_RATE, CB_GETCURSEL, 0, 0));
  					assert(rData.m_pQuotesProvider);
 diff --git a/plugins/Quotes/src/CurrencyConverter.cpp b/plugins/Quotes/src/CurrencyConverter.cpp index f1253bf01f..476617dd10 100644 --- a/plugins/Quotes/src/CurrencyConverter.cpp +++ b/plugins/Quotes/src/CurrencyConverter.cpp @@ -54,8 +54,8 @@ namespace  	inline void update_convert_button(HWND hDlg)
  	{
 -		int nFrom = static_cast<int>(::SendMessage(::GetDlgItem(hDlg,IDC_COMBO_CONVERT_FROM),CB_GETCURSEL,0,0));
 -		int nTo = static_cast<int>(::SendMessage(::GetDlgItem(hDlg,IDC_COMBO_CONVERT_INTO),CB_GETCURSEL,0,0));
 +		int nFrom = static_cast<int>(::SendDlgItemMessage(hDlg, IDC_COMBO_CONVERT_FROM, CB_GETCURSEL, 0, 0));
 +		int nTo = static_cast<int>(::SendDlgItemMessage(hDlg, IDC_COMBO_CONVERT_INTO, CB_GETCURSEL, 0, 0));
  		bool bEnableButton = ((CB_ERR != nFrom) 
  			&& (CB_ERR != nTo) 
  			&& (nFrom != nTo)
 @@ -65,8 +65,8 @@ namespace  	inline void update_swap_button(HWND hDlg)
  	{
 -		int nFrom = static_cast<int>(::SendMessage(::GetDlgItem(hDlg,IDC_COMBO_CONVERT_FROM),CB_GETCURSEL,0,0));
 -		int nTo = static_cast<int>(::SendMessage(::GetDlgItem(hDlg,IDC_COMBO_CONVERT_INTO),CB_GETCURSEL,0,0));
 +		int nFrom = static_cast<int>(::SendDlgItemMessage(hDlg, IDC_COMBO_CONVERT_FROM, CB_GETCURSEL, 0, 0));
 +		int nTo = static_cast<int>(::SendDlgItemMessage(hDlg, IDC_COMBO_CONVERT_INTO, CB_GETCURSEL, 0, 0));
  		bool bEnableButton = ((CB_ERR != nFrom) 
  			&& (CB_ERR != nTo) 
  			&& (nFrom != nTo));
 @@ -143,7 +143,7 @@ namespace  				::SetDlgItemText(hDlg,IDC_SYSLINK_PROVIDER,o.str().c_str());
 -				::SendMessage(::GetDlgItem(hDlg,IDC_BUTTON_SWAP),BM_SETIMAGE,IMAGE_ICON,
 +				::SendDlgItemMessage(hDlg, IDC_BUTTON_SWAP, BM_SETIMAGE, IMAGE_ICON,
  					reinterpret_cast<LPARAM>(Quotes_LoadIconEx(ICON_STR_SWAP)));
  				update_convert_button(hDlg);
 @@ -205,8 +205,8 @@ namespace  					{
  						Quotes_DBWriteDouble(NULL,QUOTES_MODULE_NAME,DB_STR_CC_AMOUNT,dAmount);
 -						size_t nFrom = static_cast<size_t>(::SendMessage(::GetDlgItem(hDlg,IDC_COMBO_CONVERT_FROM),CB_GETCURSEL,0,0));
 -						size_t nTo = static_cast<size_t>(::SendMessage(::GetDlgItem(hDlg,IDC_COMBO_CONVERT_INTO),CB_GETCURSEL,0,0));
 +						size_t nFrom = static_cast<size_t>(::SendDlgItemMessage(hDlg, IDC_COMBO_CONVERT_FROM, CB_GETCURSEL, 0, 0));
 +						size_t nTo = static_cast<size_t>(::SendDlgItemMessage(hDlg, IDC_COMBO_CONVERT_INTO, CB_GETCURSEL, 0, 0));
  						if ((CB_ERR != nFrom) && (CB_ERR != nTo) && (nFrom != nTo))
  						{
  							const CQuotesProviderGoogle::CQuoteSection& rSection = get_quotes();
 diff --git a/plugins/Quotes/src/QuotesProviderFinance.cpp b/plugins/Quotes/src/QuotesProviderFinance.cpp index 0b586985ed..97fa950de3 100644 --- a/plugins/Quotes/src/QuotesProviderFinance.cpp +++ b/plugins/Quotes/src/QuotesProviderFinance.cpp @@ -225,7 +225,7 @@ namespace  			case IDC_LIST_RATES:
  				if(CBN_SELCHANGE == HIWORD(wParam))
  				{
 -					int nSel = ::SendMessage(::GetDlgItem(hDlg,IDC_LIST_RATES),LB_GETCURSEL,0,0);
 +					int nSel = ::SendDlgItemMessage(hDlg, IDC_LIST_RATES, LB_GETCURSEL, 0, 0);
  					::EnableWindow(::GetDlgItem(hDlg,IDC_BUTTON_REMOVE),(LB_ERR != nSel));
  				}
  				return (TRUE);
 diff --git a/plugins/Quotes/src/QuotesProviderGoogle.cpp b/plugins/Quotes/src/QuotesProviderGoogle.cpp index 3638423424..377210ec9e 100644 --- a/plugins/Quotes/src/QuotesProviderGoogle.cpp +++ b/plugins/Quotes/src/QuotesProviderGoogle.cpp @@ -342,7 +342,7 @@ namespace  							g_aWatchedRates.push_back(ri);
  							tstring sRate = make_rate_name(ri.m_from,ri.m_to);
  							LPCTSTR pszRateName = sRate.c_str();
 -							::SendMessage(::GetDlgItem(hdlg,IDC_LIST_RATES),LB_ADDSTRING,0,reinterpret_cast<LPARAM>(pszRateName));
 +							::SendDlgItemMessage(hdlg, IDC_LIST_RATES, LB_ADDSTRING, 0, reinterpret_cast<LPARAM>(pszRateName));
  						}
  					}
  				}
 @@ -362,15 +362,15 @@ namespace  				case IDC_COMBO_CONVERT_FROM:
  				case IDC_COMBO_CONVERT_INTO:
  					{
 -						int nFrom = static_cast<int>(::SendMessage(::GetDlgItem(hdlg,IDC_COMBO_CONVERT_FROM),CB_GETCURSEL,0,0));
 -						int nTo = static_cast<int>(::SendMessage(::GetDlgItem(hdlg,IDC_COMBO_CONVERT_INTO),CB_GETCURSEL,0,0));
 +						int nFrom = static_cast<int>(::SendDlgItemMessage(hdlg, IDC_COMBO_CONVERT_FROM, CB_GETCURSEL, 0, 0));
 +						int nTo = static_cast<int>(::SendDlgItemMessage(hdlg, IDC_COMBO_CONVERT_INTO, CB_GETCURSEL, 0, 0));
  						bool bEnableAddButton = ((CB_ERR != nFrom) && (CB_ERR != nTo) && (nFrom != nTo));
  						EnableWindow(GetDlgItem(hdlg,IDC_BUTTON_ADD),bEnableAddButton);
  					}
  					break;
  				case IDC_LIST_RATES:
  					{
 -						int nSel = ::SendMessage(::GetDlgItem(hdlg,IDC_LIST_RATES),LB_GETCURSEL,0,0);
 +						int nSel = ::SendDlgItemMessage(hdlg, IDC_LIST_RATES, LB_GETCURSEL, 0, 0);
  						::EnableWindow(::GetDlgItem(hdlg,IDC_BUTTON_REMOVE),(LB_ERR != nSel));
  					}
  					break;
 @@ -381,8 +381,8 @@ namespace  				{
  				case IDC_BUTTON_ADD:
  					{
 -						size_t nFrom = static_cast<size_t>(::SendMessage(::GetDlgItem(hdlg,IDC_COMBO_CONVERT_FROM),CB_GETCURSEL,0,0));
 -						size_t nTo = static_cast<size_t>(::SendMessage(::GetDlgItem(hdlg,IDC_COMBO_CONVERT_INTO),CB_GETCURSEL,0,0));
 +						size_t nFrom = static_cast<size_t>(::SendDlgItemMessage(hdlg, IDC_COMBO_CONVERT_FROM, CB_GETCURSEL, 0, 0));
 +						size_t nTo = static_cast<size_t>(::SendDlgItemMessage(hdlg, IDC_COMBO_CONVERT_INTO, CB_GETCURSEL, 0, 0));
  						if ((CB_ERR != nFrom) && (CB_ERR != nTo) && (nFrom != nTo))
  						{
  							const CQuotesProviderGoogle::CQuoteSection& rSection = get_quotes();
 @@ -397,7 +397,7 @@ namespace  								tstring sRate = make_rate_name(ri.m_from,ri.m_to);
  								LPCTSTR pszRateName = sRate.c_str();
 -								::SendMessage(::GetDlgItem(hdlg,IDC_LIST_RATES),LB_ADDSTRING,0,reinterpret_cast<LPARAM>(pszRateName));
 +								::SendDlgItemMessage(hdlg, IDC_LIST_RATES, LB_ADDSTRING, 0, reinterpret_cast<LPARAM>(pszRateName));
  								PropSheet_Changed(::GetParent(hdlg),hdlg);
  							}
  						}
 @@ -431,7 +431,7 @@ namespace  // 				{
  // 				case IDC_LIST_RATES:
  // 					{
 -// 						int nSel = ::SendMessage(::GetDlgItem(hdlg,IDC_LIST_RATES),LB_GETCURSEL,0,0);
 +// 						int nSel = ::SendDlgItemMessage(hdlg, IDC_LIST_RATES, LB_GETCURSEL, 0, 0);
  // 						::EnableWindow(::GetDlgItem(hdlg,IDC_BUTTON_REMOVE),(-1 != nSel));
  // 					}
  // 				}
  | 
