From f04d64869f3b1de54fb343f28f955584780001b8 Mon Sep 17 00:00:00 2001 From: mataes2007 Date: Sat, 26 Nov 2011 15:41:10 +0000 Subject: Project folders rename part 3 git-svn-id: http://miranda-plugins.googlecode.com/svn/trunk@215 e753b5eb-9565-29b2-b5c5-2cc6f99dfbcb --- Tooltip_Notify/src/Utils.cpp | 32 -------------------------------- 1 file changed, 32 deletions(-) delete mode 100644 Tooltip_Notify/src/Utils.cpp (limited to 'Tooltip_Notify/src/Utils.cpp') diff --git a/Tooltip_Notify/src/Utils.cpp b/Tooltip_Notify/src/Utils.cpp deleted file mode 100644 index ce73dbc..0000000 --- a/Tooltip_Notify/src/Utils.cpp +++ /dev/null @@ -1,32 +0,0 @@ -// -// Utils.cpp -// - -#include "stdafx.h" -#include "Utils.h" - -BOOL IsNt50() -{ - WORD wOsVersion = LOWORD(GetVersion()); - BYTE bMajorVer = LOBYTE(wOsVersion); - BYTE bMinorVer = HIBYTE(wOsVersion); - - return (bMajorVer>=5 && bMinorVer>=0); -} - -void TruncateWithDots(TCHAR* szString, int iNewLen) -{ - assert(iNewLen >= 0); - - int iOrigLen = _tcslen(szString); - if (iNewLen < iOrigLen) - { - TCHAR* p = szString+iNewLen; - *p = _T('\0'); - for(int i=0; --p>=szString && i<3; i++) - { - *p = _T('.'); - } - } -} - -- cgit v1.2.3