From 6e53dfca72b932c4bdcd7aa02ca62bf8b2630eac Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 26 Jul 2016 09:20:25 +0000 Subject: less TCHARs: - TCHAR is replaced with wchar_t everywhere; - LPGENT replaced with either LPGENW or LPGEN; - fixes for ANSI plugins that improperly used _t functions; - TCHAR *t removed from MAllStrings; - ptszGroup, ptszTitle & ptszTab in OPTIONSDIALOGPAGE replaced with pwsz* git-svn-id: http://svn.miranda-ng.org/main/trunk@17133 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/SpellChecker/src/stdafx.h | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'plugins/SpellChecker/src/stdafx.h') diff --git a/plugins/SpellChecker/src/stdafx.h b/plugins/SpellChecker/src/stdafx.h index 66e5e39f3f..ea4ea9b6bc 100644 --- a/plugins/SpellChecker/src/stdafx.h +++ b/plugins/SpellChecker/src/stdafx.h @@ -96,7 +96,7 @@ extern HBITMAP hCheckedBmp; struct WrongWordPopupMenuData { Suggestions suggestions; - TCHAR *word; + wchar_t *word; CHARRANGE pos; HMENU hMeSubMenu; HMENU hCorrectSubMenu; @@ -110,7 +110,7 @@ struct Dialog MCONTACT hContact; char name[64]; Dictionary *lang; - TCHAR lang_name[32]; + wchar_t lang_name[32]; BOOL enabled; BOOL srmm; @@ -129,11 +129,11 @@ struct Dialog }; static BOOL CenterParent(HWND hwnd); -TCHAR *lstrtrim(TCHAR *str); -BOOL lstreq(TCHAR *a, TCHAR *b, size_t len = -1); -inline BOOL IsNumber(TCHAR c) +wchar_t *lstrtrim(wchar_t *str); +BOOL lstreq(wchar_t *a, wchar_t *b, size_t len = -1); +inline BOOL IsNumber(wchar_t c) { - return c >= _T('0') && c <= _T('9'); + return c >= '0' && c <= '9'; } int MsgWindowEvent(WPARAM wParam, LPARAM lParam); @@ -151,9 +151,9 @@ INT_PTR ShowPopupMenuService(WPARAM wParam, LPARAM lParam); LRESULT CALLBACK MenuWndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam); void ModifyIcon(Dialog *dlg); -BOOL GetWordCharRange(Dialog *dlg, CHARRANGE &sel, TCHAR *text, size_t text_len, int &first_char); -TCHAR *GetWordUnderPoint(Dialog *dlg, POINT pt, CHARRANGE &sel); +BOOL GetWordCharRange(Dialog *dlg, CHARRANGE &sel, wchar_t *text, size_t text_len, int &first_char); +wchar_t *GetWordUnderPoint(Dialog *dlg, POINT pt, CHARRANGE &sel); -int GetClosestLanguage(TCHAR *lang_name); +int GetClosestLanguage(wchar_t *lang_name); #endif // __COMMONS_H__ -- cgit v1.2.3