Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: src/plugin/PluginClass.cpp

Issue 10800100: Show better instructions to IE9+ users (Closed)
Patch Set: Created June 7, 2013, 6:25 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « files/dictionary_w.ini ('k') | src/plugin/PluginDictionary.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/plugin/PluginClass.cpp
===================================================================
--- a/src/plugin/PluginClass.cpp
+++ b/src/plugin/PluginClass.cpp
@@ -574,8 +574,11 @@
// Do we have enough rights to enable a status bar?
if (regRes != 0)
{
+ LPCWSTR browserVersion = CPluginSystem::GetInstance()->GetBrowserVersion();
+ int versionNumber = wcstol(browserVersion, 0, 10);
Felix Dahlke 2013/06/07 06:28:24 @Oleksandr: Can I rely on this being an integer? I
Oleksandr 2013/06/07 07:16:46 This is guaranteed to be either 1 number or an emp
Felix Dahlke 2013/06/07 08:02:47 Hm, I thought it was shown by default in IE8. But
Wladimir Palant 2013/06/07 08:48:29 I looked through the IE versions: * Custom title
+ LPCSTR messageKey = versionNumber >= 9 ? "ERROR_CAN_NOT_ENABLE_STATUS_BAR_IE9" : "ERROR_CAN_NOT_ENABLE_STATUS_BAR";
// We use the tab window here and in the next few calls, since the browser window may still not be available
- LRESULT res = MessageBox((HWND)m_hTabWnd, dictionary->Lookup("ERROR_CAN_NOT_ENABLE_STATUS_BAR"),
+ LRESULT res = MessageBox((HWND)m_hTabWnd, dictionary->Lookup(messageKey),
dictionary->Lookup("ERROR_CAN_NOT_ENABLE_STATUS_BAR_TITLE"), MB_OK);
return;
}
« no previous file with comments | « files/dictionary_w.ini ('k') | src/plugin/PluginDictionary.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld