From e521b812384a0e93f48e078c6cb248913dcc893a Mon Sep 17 00:00:00 2001 From: Vadim Dashevskiy Date: Fri, 15 Jun 2012 20:04:13 +0000 Subject: another portion of "#ifsef Unicode" removal git-svn-id: http://svn.miranda-ng.org/main/trunk@437 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/SmileyAdd/smileyroutines.cpp | 48 ++---------------------------------- 1 file changed, 2 insertions(+), 46 deletions(-) (limited to 'plugins/SmileyAdd/smileyroutines.cpp') diff --git a/plugins/SmileyAdd/smileyroutines.cpp b/plugins/SmileyAdd/smileyroutines.cpp index c5e6e46d8a..ba136d7ed5 100644 --- a/plugins/SmileyAdd/smileyroutines.cpp +++ b/plugins/SmileyAdd/smileyroutines.cpp @@ -29,12 +29,9 @@ ISmileyBase* CreateSmileyObject(SmileyType* sml); ISmileyBase* CreateAniSmileyObject(SmileyType* sml, COLORREF clr, bool ishpp); -#ifdef _UNICODE + bool g_HiddenTextSupported = true; -#else -int RichEditVersion(void); -bool g_HiddenTextSupported = (RichEditVersion() == 3); -#endif + // {8CC497C0-A1DF-11CE-8098-00AA0047BE5D} const GUID IID_ITextDocument = @@ -272,11 +269,6 @@ void ReplaceSmileys(HWND hwnd, SmileyPackType* smp, SmileyPackCType* smcp, const SmileysQueueType smllist; -#if !defined(_UNICODE) && !defined(UNICODE) - size_t len = SysStringLen(btxt); - for (unsigned i=0; iRelease(); RichEditOle->Release(); } - - -#if !defined(_UNICODE) && !defined(UNICODE) -int RichEditVersion(void) -{ - int ret = -1; - - HMODULE hLib = GetModuleHandle(_T("riched20.dll")); - HRSRC hVersion = FindResource(hLib, MAKEINTRESOURCE(VS_VERSION_INFO), RT_VERSION); - if (hVersion != NULL) - { - HGLOBAL hGlobal = LoadResource(hLib, hVersion); - if (hGlobal != NULL) - { - LPVOID versionInfo = LockResource(hGlobal); - if (versionInfo != NULL) - { - int vl = *(unsigned short*)versionInfo; - unsigned *res = (unsigned*)versionInfo; - while (*res != 0xfeef04bd && ((char*)res - (char*)versionInfo) < vl) ++res; - - if (((char*)res - (char*)versionInfo) < vl) - { - VS_FIXEDFILEINFO *vsInfo = (VS_FIXEDFILEINFO*)res; - ret = LOWORD(vsInfo->dwFileVersionMS) ? 3 : 2; - } - } - UnlockResource(hGlobal); - FreeResource(hGlobal); - } - } - return ret; -} -#endif - - -- cgit v1.2.3