Index: src/plugin/PluginClass.cpp |
=================================================================== |
--- a/src/plugin/PluginClass.cpp |
+++ b/src/plugin/PluginClass.cpp |
@@ -779,7 +779,7 @@ |
{ |
if (!s_hUxtheme) |
{ |
- s_hUxtheme = ::GetModuleHandle(_T("uxtheme.dll")); |
+ s_hUxtheme = ::GetModuleHandle(L"uxtheme.dll"); |
if (s_hUxtheme) |
{ |
pfnClose = (CLOSETHEMEDATA)::GetProcAddress(s_hUxtheme, "CloseThemeData"); |
@@ -823,7 +823,7 @@ |
wcex.hCursor = NULL; |
wcex.hbrBackground = NULL; |
wcex.lpszMenuName = NULL; |
- wcex.lpszClassName = _T(STATUSBAR_PANE_NAME); |
+ wcex.lpszClassName = STATUSBAR_PANE_NAME; |
wcex.hIconSm = NULL; |
s_criticalSectionLocal.Lock(); |
@@ -873,7 +873,7 @@ |
CPluginClient* client = CPluginClient::GetInstance(); |
- TCHAR szClassName[MAX_PATH]; |
+ wchar_t szClassName[MAX_PATH]; |
// Get browser window and url |
HWND hBrowserWnd = GetBrowserHWND(); |
if (!hBrowserWnd) |
@@ -894,13 +894,13 @@ |
memset(szClassName, 0, MAX_PATH); |
GetClassName(hTabWnd, szClassName, MAX_PATH); |
- if (_tcscmp(szClassName, _T("TabWindowClass")) == 0 || _tcscmp(szClassName,_T("Frame Tab")) == 0) |
+ if (wcscmp(szClassName, L"TabWindowClass") == 0 || wcscmp(szClassName,L"Frame Tab") == 0) |
{ |
// IE8 support |
HWND hTabWnd2 = hTabWnd; |
- if (_tcscmp(szClassName,_T("Frame Tab")) == 0) |
+ if (wcscmp(szClassName,L"Frame Tab") == 0) |
{ |
- hTabWnd2 = ::FindWindowEx(hTabWnd2, NULL, _T("TabWindowClass"), NULL); |
+ hTabWnd2 = ::FindWindowEx(hTabWnd2, NULL, L"TabWindowClass", NULL); |
} |
if (hTabWnd2) |
@@ -948,7 +948,7 @@ |
memset(szClassName, 0, MAX_PATH); |
::GetClassName(hWnd, szClassName, MAX_PATH); |
- if (_tcscmp(szClassName,_T("msctls_statusbar32")) == 0) |
+ if (wcscmp(szClassName,L"msctls_statusbar32") == 0) |
{ |
hWndStatusBar = hWnd; |
break; |
@@ -987,7 +987,7 @@ |
HWND hWndNewPane = ::CreateWindowEx( |
NULL, |
MAKEINTATOM(GetAtomPaneClass()), |
- _T(""), |
+ L"", |
WS_CHILD | WS_VISIBLE | WS_CLIPSIBLINGS | WS_CLIPCHILDREN, |
rcStatusBar.Width() - 500,0,m_nPaneWidth,rcStatusBar.Height(), |
hWndStatusBar, |
@@ -1264,7 +1264,7 @@ |
HWND hMenuWnd = ::CreateWindowEx( |
NULL, |
MAKEINTATOM(GetAtomPaneClass()), |
- _T(""), |
+ L"", |
0, |
0,0,0,0, |
NULL, |
@@ -1925,8 +1925,7 @@ |
HWND CPluginClass::GetTabHWND() const |
{ |
- |
- TCHAR szClassName[MAX_PATH]; |
+ wchar_t szClassName[MAX_PATH]; |
// Get browser window and url |
HWND hBrowserWnd = GetBrowserHWND(); |
if (!hBrowserWnd) |
@@ -1945,13 +1944,13 @@ |
memset(szClassName, 0, MAX_PATH); |
GetClassName(hTabWnd, szClassName, MAX_PATH); |
- if (_tcscmp(szClassName, _T("TabWindowClass")) == 0 || _tcscmp(szClassName,_T("Frame Tab")) == 0) |
+ if (wcscmp(szClassName, L"TabWindowClass") == 0 || wcscmp(szClassName, L"Frame Tab") == 0) |
{ |
// IE8 support |
HWND hTabWnd2 = hTabWnd; |
- if (_tcscmp(szClassName,_T("Frame Tab")) == 0) |
+ if (wcscmp(szClassName, L"Frame Tab") == 0) |
{ |
- hTabWnd2 = ::FindWindowEx(hTabWnd2, NULL, _T("TabWindowClass"), NULL); |
+ hTabWnd2 = ::FindWindowEx(hTabWnd2, NULL, L"TabWindowClass", NULL); |
} |
if (hTabWnd2) |