summaryrefslogtreecommitdiff
path: root/plugins/TrafficCounter/src/opttree.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/TrafficCounter/src/opttree.cpp')
-rw-r--r--plugins/TrafficCounter/src/opttree.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/plugins/TrafficCounter/src/opttree.cpp b/plugins/TrafficCounter/src/opttree.cpp
index 09447b2c85..337fca2806 100644
--- a/plugins/TrafficCounter/src/opttree.cpp
+++ b/plugins/TrafficCounter/src/opttree.cpp
@@ -23,12 +23,12 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#include "stdafx.h"
-HTREEITEM OptTree_FindNamedTreeItemAt(HWND hwndTree, HTREEITEM hItem, const TCHAR *name);
-HTREEITEM OptTree_AddItem(HWND hwndTree, TCHAR *name, LPARAM lParam, int iconIndex);
+HTREEITEM OptTree_FindNamedTreeItemAt(HWND hwndTree, HTREEITEM hItem, const wchar_t *name);
+HTREEITEM OptTree_AddItem(HWND hwndTree, wchar_t *name, LPARAM lParam, int iconIndex);
static void OptTree_TranslateItem(HWND hwndTree, HTREEITEM hItem)
{
- TCHAR buf[128];
+ wchar_t buf[128];
TVITEM tvi = {0};
tvi.mask = TVIF_HANDLE|TVIF_TEXT;
@@ -72,10 +72,10 @@ void OptTree_Translate(HWND hwndTree)
}
}
-HTREEITEM OptTree_FindNamedTreeItemAt(HWND hwndTree, HTREEITEM hItem, const TCHAR *name)
+HTREEITEM OptTree_FindNamedTreeItemAt(HWND hwndTree, HTREEITEM hItem, const wchar_t *name)
{
TVITEM tvi = {0};
- TCHAR str[MAX_PATH];
+ wchar_t str[MAX_PATH];
if (hItem)
tvi.hItem = TreeView_GetChild(hwndTree, hItem);
@@ -101,11 +101,11 @@ HTREEITEM OptTree_FindNamedTreeItemAt(HWND hwndTree, HTREEITEM hItem, const TCHA
return NULL;
}
-HTREEITEM OptTree_AddItem(HWND hwndTree, TCHAR *name, LPARAM lParam, int iconIndex)
+HTREEITEM OptTree_AddItem(HWND hwndTree, wchar_t *name, LPARAM lParam, int iconIndex)
{
- TCHAR itemName[1024];
+ wchar_t itemName[1024];
- TCHAR* sectionName;
+ wchar_t* sectionName;
int sectionLevel = 0;
HTREEITEM hSection = NULL, result = NULL;
@@ -115,10 +115,10 @@ HTREEITEM OptTree_AddItem(HWND hwndTree, TCHAR *name, LPARAM lParam, int iconInd
while (sectionName)
{
// allow multi-level tree
- TCHAR* pItemName = sectionName;
+ wchar_t* pItemName = sectionName;
HTREEITEM hItem;
- if (sectionName = _tcschr(sectionName, '/'))
+ if (sectionName = wcschr(sectionName, '/'))
{
// one level deeper
*sectionName = 0;
@@ -169,7 +169,7 @@ BOOL OptTree_ProcessMessage(HWND hwnd, UINT msg, WPARAM, LPARAM lparam, BOOL*,
case WM_INITDIALOG:
{
int indx;
- TCHAR itemName[1024];
+ wchar_t itemName[1024];
HIMAGELIST hImgLst;
TreeView_SelectItem(hwndTree, NULL);
@@ -188,7 +188,7 @@ BOOL OptTree_ProcessMessage(HWND hwnd, UINT msg, WPARAM, LPARAM lparam, BOOL*,
/* build options tree. based on code from IcoLib */
for (indx = 0; indx < optionCount; indx++)
{
- TCHAR* sectionName;
+ wchar_t* sectionName;
int sectionLevel = 0;
HTREEITEM hSection = NULL;
@@ -202,10 +202,10 @@ BOOL OptTree_ProcessMessage(HWND hwnd, UINT msg, WPARAM, LPARAM lparam, BOOL*,
while (sectionName)
{
// allow multi-level tree
- TCHAR* pItemName = sectionName;
+ wchar_t* pItemName = sectionName;
HTREEITEM hItem;
- if (sectionName = _tcschr(sectionName, '/'))
+ if (sectionName = wcschr(sectionName, '/'))
{
// one level deeper
*sectionName = 0;