diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2015-02-21 21:19:12 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2015-02-21 21:19:12 +0000 |
commit | b84f891f0dac03a170637a1cf54bd1e25a87eb1f (patch) | |
tree | 36c797c65524fa2d4a1ae71921a1b987063f7403 /plugins/TabSRMM/src/mim.h | |
parent | 4ba2455da24ecbe9f0c623945e7add2696cdc81b (diff) |
code formatting
git-svn-id: http://svn.miranda-ng.org/main/trunk@12236 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TabSRMM/src/mim.h')
-rw-r--r-- | plugins/TabSRMM/src/mim.h | 74 |
1 files changed, 46 insertions, 28 deletions
diff --git a/plugins/TabSRMM/src/mim.h b/plugins/TabSRMM/src/mim.h index 5dcae4648a..ee3e78145f 100644 --- a/plugins/TabSRMM/src/mim.h +++ b/plugins/TabSRMM/src/mim.h @@ -39,24 +39,24 @@ extern FI_INTERFACE *FIF; * - some GDI functions (AlphaBlend()..)
*/
//dwmapi
-typedef HRESULT (WINAPI *DEFICA)(HWND hwnd, const MARGINS *margins);
-typedef HRESULT (WINAPI *DICE)(BOOL *);
-typedef HRESULT (WINAPI *DRT)(HWND, HWND, PHTHUMBNAIL);
-typedef HRESULT (WINAPI *BBW)(HWND, DWM_BLURBEHIND *);
-typedef HRESULT (WINAPI *DGC)(DWORD *, BOOL *);
-typedef HRESULT (WINAPI *DWMIIB)(HWND);
-typedef HRESULT (WINAPI *DWMSWA)(HWND, DWORD, LPCVOID, DWORD);
-typedef HRESULT (WINAPI *DWMUT)(HTHUMBNAIL, DWM_THUMBNAIL_PROPERTIES *);
-typedef HRESULT (WINAPI *DURT)(HTHUMBNAIL);
-typedef HRESULT (WINAPI *DSIT)(HWND, HBITMAP, DWORD);
-typedef HRESULT (WINAPI *DSILP)(HWND, HBITMAP, POINT *, DWORD);
+typedef HRESULT(WINAPI *DEFICA)(HWND hwnd, const MARGINS *margins);
+typedef HRESULT(WINAPI *DICE)(BOOL *);
+typedef HRESULT(WINAPI *DRT)(HWND, HWND, PHTHUMBNAIL);
+typedef HRESULT(WINAPI *BBW)(HWND, DWM_BLURBEHIND *);
+typedef HRESULT(WINAPI *DGC)(DWORD *, BOOL *);
+typedef HRESULT(WINAPI *DWMIIB)(HWND);
+typedef HRESULT(WINAPI *DWMSWA)(HWND, DWORD, LPCVOID, DWORD);
+typedef HRESULT(WINAPI *DWMUT)(HTHUMBNAIL, DWM_THUMBNAIL_PROPERTIES *);
+typedef HRESULT(WINAPI *DURT)(HTHUMBNAIL);
+typedef HRESULT(WINAPI *DSIT)(HWND, HBITMAP, DWORD);
+typedef HRESULT(WINAPI *DSILP)(HWND, HBITMAP, POINT *, DWORD);
//uxtheme
-typedef UINT (WINAPI *PDTTE)(HANDLE, HDC, int, int, LPCWSTR, int, DWORD, RECT *, const DTTOPTS *);
-typedef HANDLE (WINAPI *BBP)(HDC, RECT *, BP_BUFFERFORMAT, BP_PAINTPARAMS *, HDC *);
-typedef HRESULT (WINAPI *EBP)(HANDLE, BOOL);
-typedef HRESULT (WINAPI *BPI)(void);
-typedef HRESULT (WINAPI *BPU)(void);
-typedef HRESULT (WINAPI *BPSA)(HANDLE, const RECT *, BYTE);
+typedef UINT(WINAPI *PDTTE)(HANDLE, HDC, int, int, LPCWSTR, int, DWORD, RECT *, const DTTOPTS *);
+typedef HANDLE(WINAPI *BBP)(HDC, RECT *, BP_BUFFERFORMAT, BP_PAINTPARAMS *, HDC *);
+typedef HRESULT(WINAPI *EBP)(HANDLE, BOOL);
+typedef HRESULT(WINAPI *BPI)(void);
+typedef HRESULT(WINAPI *BPU)(void);
+typedef HRESULT(WINAPI *BPSA)(HANDLE, const RECT *, BYTE);
//kernel32
typedef int (WINAPI *GLIX)(LPCWSTR, LCTYPE, LPCWSTR, int);
@@ -87,7 +87,7 @@ public: }
~CMimAPI() {
- if (m_haveBufferedPaint)
+ if (m_haveBufferedPaint)
m_pfnBufferedPaintUninit();
if (m_hUxTheme != 0)
FreeLibrary(m_hUxTheme);
@@ -103,25 +103,43 @@ public: */
static DWORD __forceinline GetDword(const char *szModule, const char *szSetting, DWORD uDefault)
- { return db_get_dw(0, szModule, szSetting, uDefault); }
+ {
+ return db_get_dw(0, szModule, szSetting, uDefault);
+ }
static DWORD __forceinline GetDword(const char *szSetting, DWORD uDefault)
- { return db_get_dw(0, SRMSGMOD_T, szSetting, uDefault); }
+ {
+ return db_get_dw(0, SRMSGMOD_T, szSetting, uDefault);
+ }
static DWORD __forceinline GetDword(const MCONTACT hContact, const char *szSetting, DWORD uDefault)
- { return db_get_dw(hContact, SRMSGMOD_T, szSetting, uDefault); }
+ {
+ return db_get_dw(hContact, SRMSGMOD_T, szSetting, uDefault);
+ }
static int __forceinline GetByte(const char *szSetting, int uDefault)
- { return db_get_b(0, SRMSGMOD_T, szSetting, uDefault); }
+ {
+ return db_get_b(0, SRMSGMOD_T, szSetting, uDefault);
+ }
static int __forceinline GetByte(const char *szModule, const char *szSetting, int uDefault)
- { return db_get_b(0, szModule, szSetting, uDefault); }
+ {
+ return db_get_b(0, szModule, szSetting, uDefault);
+ }
static int __forceinline GetByte(const MCONTACT hContact, const char *szSetting, int uDefault)
- { return db_get_b(hContact, SRMSGMOD_T, szSetting, uDefault); }
+ {
+ return db_get_b(hContact, SRMSGMOD_T, szSetting, uDefault);
+ }
static bool __forceinline GetBool(const char *szSetting, bool bDefault)
- { return db_get_b(0, SRMSGMOD_T, szSetting, bDefault) != 0; }
+ {
+ return db_get_b(0, SRMSGMOD_T, szSetting, bDefault) != 0;
+ }
static bool __forceinline GetBool(const char *szModule, const char *szSetting, bool bDefault)
- { return db_get_b(0, szModule, szSetting, bDefault) != 0; }
+ {
+ return db_get_b(0, szModule, szSetting, bDefault) != 0;
+ }
static bool __forceinline GetBool(const MCONTACT hContact, const char *szSetting, bool bDefault)
- { return db_get_b(hContact, SRMSGMOD_T, szSetting, bDefault) != 0; }
+ {
+ return db_get_b(hContact, SRMSGMOD_T, szSetting, bDefault) != 0;
+ }
/*
* path utilities
@@ -150,7 +168,7 @@ public: // returns status of Windows Aero
const bool isAero() const { return m_isAero; }
-
+
const bool isDwmActive() const { return m_DwmActive; }
const DWORD getWinVer() const { return m_winVer; }
|