Pinky84
Messages postés
24
Date d'inscription
samedi 11 novembre 2000
Statut
Membre
Dernière intervention
27 avril 2010
28 mars 2005 à 21:05
c'est pourtant ce que j'ai fais (je crois).. enfin.. si vous voulez bien jeter un coup d'oeil:
#ifndef UXTHEME_H
#define UXTHEME_H
#ifndef _WIN32_WINNT
#define _WIN32_WINNT 0x0501
#endif
#include <windows.h>
#include <commctrl.h>
#include
#include <tmschema.h>
typedef HRESULT (WINAPI *LPCLOSETHEMEDATA)(HTHEME);
typedef HRESULT (WINAPI *LPDRAWTHEMEBACKGROUND) (HTHEME, HDC, int, int, const RECT *, const RECT *);
typedef HRESULT (WINAPI *LPDRAWTHEMEPARENTBACKGROUND) (HWND, HDC, RECT *);
typedef HRESULT (WINAPI *LPGETBACKGROUNDCONTENTRECT) (HTHEME, HDC, int, int, const RECT *, RECT *);
typedef BOOL (WINAPI *LPISTHEMEBACKGROUNDPARTIALLYTRANSPARENT) (HTHEME, int, int);
typedef HTHEME (WINAPI *LPOPENTHEMEDATA) (HWND, LPCWSTR);
HMODULE g_hUxTheme = NULL;
LPCLOSETHEMEDATA gp_CloseThemeData = NULL;
LPDRAWTHEMEBACKGROUND gp_DrawThemeBackground = NULL;
LPDRAWTHEMEPARENTBACKGROUND gp_DrawThemeParentBackground = NULL;
LPGETBACKGROUNDCONTENTRECT gp_GetBackgroundContentRect = NULL;
LPISTHEMEBACKGROUNDPARTIALLYTRANSPARENT gp_IsThemeBackgroundPartiallyTransparent = NULL;
LPOPENTHEMEDATA gp_OpenThemeData = NULL;
extern HRESULT _CloseThemeData(HTHEME hTheme);
extern HRESULT _DrawThemeBackground(HTHEME hTheme, HDC hDc, int
iPartId, int iState, const RECT *p_rcRect, const RECT *p_rcClip);
extern HRESULT _DrawThemeParentBackground(HWND hWndControl, HDC hDcControl, RECT *p_rcRect);
extern HRESULT _GetBackgroundContentRect(HTHEME hTheme, HDC hDc, int
iPartId, int iState, const RECT *p_rcBound, RECT *p_rcContent);
extern BOOL _IsThemeBackgroundPartiallyTransparent(HTHEME hTheme, int iPartId, int iState);
extern HTHEME _OpenThemeData(HWND hWndControl, LPCWSTR pszClassList);
#endif