diff options
author | George Hazan <george.hazan@gmail.com> | 2016-07-26 09:20:25 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2016-07-26 09:20:25 +0000 |
commit | 6e53dfca72b932c4bdcd7aa02ca62bf8b2630eac (patch) | |
tree | 2e8bb660c908b54914abd562af8aafa4a486c846 /plugins/SendScreenshotPlus/src/Utils.h | |
parent | a61c8728b379057fe7f0a0d86fe0b037598229dd (diff) |
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
Diffstat (limited to 'plugins/SendScreenshotPlus/src/Utils.h')
-rw-r--r-- | plugins/SendScreenshotPlus/src/Utils.h | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/plugins/SendScreenshotPlus/src/Utils.h b/plugins/SendScreenshotPlus/src/Utils.h index 354244457f..5c22a17b7e 100644 --- a/plugins/SendScreenshotPlus/src/Utils.h +++ b/plugins/SendScreenshotPlus/src/Utils.h @@ -50,13 +50,13 @@ size_t MonitorInfoEnum(MONITORINFOEX* & myMonitors, RECT & virtualScreen); BOOL CALLBACK MonitorInfoEnumProc(HMONITOR hMonitor, HDC hdcMonitor, LPRECT lprcMonitor, LPARAM dwData); FIBITMAP* CaptureWindow(HWND hCapture, BOOL bClientArea, BOOL bIndirectCapture); -FIBITMAP* CaptureMonitor(const TCHAR* szDevice,const RECT* cropRect=NULL); -TCHAR* SaveImage(FREE_IMAGE_FORMAT fif, FIBITMAP* dib, const TCHAR* pszFilename, const TCHAR* pszExt, int flag=0); +FIBITMAP* CaptureMonitor(const wchar_t* szDevice,const RECT* cropRect=NULL); +wchar_t* SaveImage(FREE_IMAGE_FORMAT fif, FIBITMAP* dib, const wchar_t* pszFilename, const wchar_t* pszExt, int flag=0); -TCHAR* GetFileNameW(const TCHAR* pszPath); -TCHAR* GetFileExtW (const TCHAR* pszPath); -char* GetFileNameA(const TCHAR* pszPath); -char* GetFileExtA (const TCHAR* pszPath); +wchar_t* GetFileNameW(const wchar_t* pszPath); +wchar_t* GetFileExtW (const wchar_t* pszPath); +char* GetFileNameA(const wchar_t* pszPath); +char* GetFileExtA (const wchar_t* pszPath); #ifdef _UNICODE # define GetFileName GetFileNameW # define GetFileExt GetFileExtW @@ -66,9 +66,9 @@ char* GetFileExtA (const TCHAR* pszPath); #endif // _UNICODE BOOL GetEncoderClsid(wchar_t *wchMimeType, CLSID& clsidEncoder); -//void SavePNG(HBITMAP hBmp, TCHAR* szFilename); -void SaveGIF(HBITMAP hBmp, TCHAR* szFilename); -void SaveTIF(HBITMAP hBmp, TCHAR* szFilename); +//void SavePNG(HBITMAP hBmp, wchar_t* szFilename); +void SaveGIF(HBITMAP hBmp, wchar_t* szFilename); +void SaveTIF(HBITMAP hBmp, wchar_t* szFilename); //--------------------------------------------------------------------------- /* Old stuff from Borland C++ @@ -76,16 +76,16 @@ void SaveTIF(HBITMAP hBmp, TCHAR* szFilename); */ -class EventHandle
-{
- HANDLE _hEvent;
-public:
- inline EventHandle() { _hEvent = CreateEvent(NULL, 0, 0, NULL); }
- inline ~EventHandle() { CloseHandle(_hEvent); }
- inline void Set() { SetEvent(_hEvent); }
- inline void Wait() { WaitForSingleObject(_hEvent, INFINITE); }
- inline void Wait(DWORD dwMilliseconds) { WaitForSingleObject(_hEvent, dwMilliseconds); }
- inline operator HANDLE() { return _hEvent; }
+class EventHandle +{ + HANDLE _hEvent; +public: + inline EventHandle() { _hEvent = CreateEvent(NULL, 0, 0, NULL); } + inline ~EventHandle() { CloseHandle(_hEvent); } + inline void Set() { SetEvent(_hEvent); } + inline void Wait() { WaitForSingleObject(_hEvent, INFINITE); } + inline void Wait(DWORD dwMilliseconds) { WaitForSingleObject(_hEvent, dwMilliseconds); } + inline operator HANDLE() { return _hEvent; } }; #endif |