diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2013-09-21 09:38:59 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2013-09-21 09:38:59 +0000 |
commit | e7be294a1f1f545836dd07588be572c8534b6232 (patch) | |
tree | 71deb182395745e472e2129f23363c0cbeb65bb3 /plugins/Clist_nicer/src/Include/config.h | |
parent | 74168df7bc11d5417542681c7192ed492ef14b95 (diff) |
using Uxtheme in nicer
git-svn-id: http://svn.miranda-ng.org/main/trunk@6146 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Clist_nicer/src/Include/config.h')
-rw-r--r-- | plugins/Clist_nicer/src/Include/config.h | 63 |
1 files changed, 1 insertions, 62 deletions
diff --git a/plugins/Clist_nicer/src/Include/config.h b/plugins/Clist_nicer/src/Include/config.h index c7dd518a25..40412b6bf6 100644 --- a/plugins/Clist_nicer/src/Include/config.h +++ b/plugins/Clist_nicer/src/Include/config.h @@ -1,7 +1,4 @@ /*
- * astyle --force-indent=tab=4 --brackets=linux --indent-switches
- * --pad=oper --one-line=keep-blocks --unpad=paren
- *
* Miranda IM: the free IM client for Microsoft* Windows*
*
* Copyright 2000-2010 Miranda ICQ/IM project,
@@ -40,27 +37,6 @@ #define IS_THEMED (API::sysState.isThemed)
#define IS_AERO (API::sysState.isAero)
-typedef int (__cdecl *pfnDrawAvatar)(HDC hdcOrig, HDC hdcMem, RECT *rc, ClcContact *contact, int y, struct ClcData *dat, int selected, WORD cstatus, int rowHeight);
-typedef BOOL (WINAPI *pfnSetLayeredWindowAttributes_t)(HWND, COLORREF, BYTE, DWORD);
-typedef BOOL (WINAPI *pfnUpdateLayeredWindow_t)(HWND, HDC, POINT *, SIZE *, HDC, POINT *, COLORREF, BLENDFUNCTION *, DWORD);
-typedef HMONITOR (WINAPI *pfnMonitorFromPoint_t)(POINT,DWORD);
-typedef HMONITOR (WINAPI *pfnMonitorFromWindow_t)(HWND,DWORD);
-typedef BOOL (WINAPI *pfnGetMonitorInfo_t)(HMONITOR,LPMONITORINFO);
-typedef BOOL (WINAPI *pfnTrackMouseEvent_t)(LPTRACKMOUSEEVENT);
-typedef DWORD (WINAPI *pfnSetLayout_t )(HDC, DWORD);
-typedef void (__cdecl *pfnDrawAlpha_t)(HDC hdcwnd, PRECT rc, DWORD basecolor, BYTE alpha, DWORD basecolor2, BOOL transparent, DWORD FLG_GRADIENT, DWORD FLG_CORNER, DWORD BORDERSTYLE, ImageItem *item);
-typedef BOOL (WINAPI *pfnAlphaBlend_t)(HDC, int, int, int, int, HDC, int, int, int, int, BLENDFUNCTION);
-
-typedef BOOL (WINAPI *pfnIsThemeActive_t)();
-typedef HANDLE (WINAPI *pfnOpenThemeData_t)(HWND, LPCWSTR);
-typedef UINT (WINAPI *pfnDrawThemeBackground_t)(HANDLE, HDC, int, int, RECT *, RECT *);
-typedef UINT (WINAPI *pfnCloseThemeData_t)(HANDLE);
-typedef UINT (WINAPI *pfnDrawThemeText_t)(HANDLE, HDC, int, int, LPCWSTR, int, DWORD, DWORD, RECT *);
-typedef UINT (WINAPI *pfnDrawThemeTextEx_t)(HANDLE, HDC, int, int, LPCWSTR, int, DWORD, RECT *, const DTTOPTS *);
-typedef BOOL (WINAPI *pfnIsThemeBackgroundPartiallyTransparent_t)(HANDLE, int, int);
-typedef HRESULT (WINAPI *pfnDrawThemeParentBackground_t)(HWND, HDC, RECT *);
-typedef HRESULT (WINAPI *pfnGetThemeBackgroundContentRect_t)(HANDLE, HDC, int, int, const RECT *, const RECT *);
-typedef BOOL (WINAPI *pfnEnableThemeDialogTexture_t)(HANDLE, DWORD);
typedef HRESULT (WINAPI *pfnDwmExtendFrameIntoClientArea_t)(HWND hwnd, const MARGINS *margins);
typedef HRESULT (WINAPI *pfnDwmIsCompositionEnabled_t)(BOOL *);
@@ -122,9 +98,6 @@ public: struct TSysConfig {
bool isVistaPlus;
bool isSevenPlus;
- bool isXPPlus;
- bool uxThemeValid;
- bool isWin2KPlus;
};
struct TSysState {
@@ -137,7 +110,6 @@ class API {
public:
static void onInit ();
- static void onUnload ();
static void updateState ();
static void Ex_CopyEditToClipboard (HWND hWnd);
@@ -145,39 +117,6 @@ public: static void Ex_Handler ();
static int Ex_ShowDialog (EXCEPTION_POINTERS *ep, const char *szFile, int line, TCHAR* szReason, bool fAllowContinue);
-
- /*
- * helpers
- */
-
- static BOOL SetLayeredWindowAttributes(HWND hWnd, COLORREF clr, BYTE alpha, DWORD dwFlags);
-
- static pfnSetLayeredWindowAttributes_t pfnSetLayeredWindowAttributes;
- static pfnUpdateLayeredWindow_t pfnUpdateLayeredWindow;
- static pfnMonitorFromPoint_t pfnMonitorFromPoint;
- static pfnMonitorFromWindow_t pfnMonitorFromWindow;
- static pfnGetMonitorInfo_t pfnGetMonitorInfo;
- static pfnTrackMouseEvent_t pfnTrackMouseEvent;
- // static pfnDrawAlpha_t pfnDrawAlpha;
- static pfnSetLayout_t pfnSetLayout;
- static PGF pfnGradientFill;
- static pfnAlphaBlend_t pfnAlphaBlend;
-
- /*
- * uxtheme
- */
-
- static pfnIsThemeActive_t pfnIsThemeActive;
- static pfnOpenThemeData_t pfnOpenThemeData;
- static pfnDrawThemeBackground_t pfnDrawThemeBackground;
- static pfnCloseThemeData_t pfnCloseThemeData;
- static pfnDrawThemeText_t pfnDrawThemeText;
- static pfnDrawThemeTextEx_t pfnDrawThemeTextEx;
- static pfnIsThemeBackgroundPartiallyTransparent_t pfnIsThemeBackgroundPartiallyTransparent;
- static pfnDrawThemeParentBackground_t pfnDrawThemeParentBackground;
- static pfnGetThemeBackgroundContentRect_t pfnGetThemeBackgroundContentRect;
- static pfnEnableThemeDialogTexture_t pfnEnableThemeDialogTexture;
-
static pfnDwmExtendFrameIntoClientArea_t pfnDwmExtendFrameIntoClientArea;
static pfnDwmIsCompositionEnabled_t pfnDwmIsCompositionEnabled;
@@ -192,7 +131,7 @@ public: static int exLine;
static bool exAllowContinue;
- static HMODULE hUxTheme, hDwm;
+ static HMODULE hDwm;
};
|