summaryrefslogtreecommitdiff
path: root/protocols/Quotes/Forex.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-06-19 14:52:53 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-06-19 14:52:53 +0000
commit54dec7a74c313ee61437386bd667f9a7653351fd (patch)
tree81aaf9bf469838735392a81ed3edfc3b3bd7481f /protocols/Quotes/Forex.cpp
parent03dd87df0b288fd0f0f512fb0bbff29e8c00f366 (diff)
fixes for the options page translation
git-svn-id: http://svn.miranda-ng.org/main/trunk@479 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Quotes/Forex.cpp')
-rw-r--r--protocols/Quotes/Forex.cpp13
1 files changed, 4 insertions, 9 deletions
diff --git a/protocols/Quotes/Forex.cpp b/protocols/Quotes/Forex.cpp
index 62f2c6af28..bd86956a2c 100644
--- a/protocols/Quotes/Forex.cpp
+++ b/protocols/Quotes/Forex.cpp
@@ -375,22 +375,17 @@ namespace
int QuotesEventFunc_OptInitialise(WPARAM wp,LPARAM/* lp*/)
{
-// USES_CONVERSION;
-
const CModuleInfo::TQuotesProvidersPtr& pProviders = CModuleInfo::GetQuoteProvidersPtr();
const CQuotesProviders::TQuotesProviders& rapProviders = pProviders->GetProviders();
- OPTIONSDIALOGPAGE odp;
- ZeroMemory(&odp,sizeof(odp));
-
+ OPTIONSDIALOGPAGE odp = { 0 };
odp.cbSize = sizeof(odp);
odp.position = 910000000;
odp.hInstance = CModuleInfo::GetModuleHandle();
- tstring sProtocolName = quotes_a2t(QUOTES_PROTOCOL_NAME);
- odp.ptszTitle = const_cast<TCHAR*>(sProtocolName.c_str());//A2T(QUOTES_PROTOCOL_NAME);
- odp.ptszGroup = _T("Network");
+ odp.pszTitle = QUOTES_PROTOCOL_NAME;
+ odp.pszGroup = LPGEN("Network");
odp.hIcon = Quotes_LoadIconEx(ICON_STR_MAIN);
- odp.flags = ODPF_TCHAR|ODPF_USERINFOTAB;
+ odp.flags = ODPF_USERINFOTAB;
std::for_each(rapProviders.begin(),rapProviders.end(),boost::bind(&IQuotesProvider::ShowPropertyPage,_1,wp,boost::ref(odp)));
return 0;