123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631 |
- #ifndef _SKINMAGICLIB_H__
- #define _SKINMAGICLIB_H__
- #include <windows.h>
- #include <commctrl.h>
- #define SMEC_OK 0
- #define SMEC_REGISTERWINDOW 1
- #define SMEC_MESSAGEHOOK 2
- #define SMEC_KEYHOOK 3
- #define SMEC_FILENOTFOUND 4
- #define SMEC_DECOMPRESSERROR 5
- #define SMEC_HEADERERROR 6
- #define SMEC_SKINVERSIONERROR 7
- #define SMEC_OBJECTNOTFOUND 8
- #define SMEC_OBJECTTYPEUNMATCH 9
- #define SMEC_IMAGESIZEERROR 10
- #define SMEC_CREATEIMAGELISTFAIL 11
- #define SMEC_NOTIMPLEMENT 12
- #define SMEC_PARAMETERERROR 13
- #define SMEC_INITSCROLLBARFAIL 14
- #define SMEC_LOADRESOURCEFAIL 15
- #define SMEC_FINDRESOURCEFAIL 16
- #define SMEC_WINDOWSXPNOTCOMPATIBLE 17
- #define SMEC_OUTOFMEMORY 18
- #define SMEC_LIBARAYNOTINITIALIZED 19
- #pragma pack(push, 8)
- int __stdcall InitSkinMagicLib( HINSTANCE hInstance,
- LPCTSTR lpApplication ,
- LPCTSTR lpReserved1,
- LPCTSTR lpReserved2 )
- void __stdcall ExitSkinMagicLib()
- int __stdcall LoadSkinFile( LPCTSTR lpSkinFile )
- int __stdcall LoadSkinFromResource(HMODULE hModule, LPCTSTR lpSkinName ,LPCTSTR lpType)
- int __stdcall SetWindowSkin( HWND hWnd , LPCTSTR lpSkinName )
- int __stdcall SetShapeWindowSkin( HWND hWnd , LPCTSTR SkinName )
- int __stdcall RemoveWindowSkin( HWND hWnd )
- int __stdcall SetDialogSkin( LPCTSTR szSkinName )
- int __stdcall SetSingleDialogSkin( HWND hWnd , LPCTSTR szSkinName )
- int __stdcall RemoveDialogSkin()
- int __stdcall EnableWindowScrollbarSkin( HWND hWnd ,int fnBar )
- int __stdcall DisableWindowScrollbarSkin( HWND hWnd )
- BOOL __stdcall TrackSkinPopupMenu( HMENU hMenu, UINT uFlags, int x, int y, HWND hWnd )
- int __stdcall EnableCaptionButtons(HWND hWnd , LPCTSTR lpName , BOOL bEnable )
- #define WM_SKINDATACHANGED WM_USER + 2000
- #define WM_SETSKIN WM_APP + 1000
- typedef HANDLE HSKIN
- int __stdcall RegisterSkinWindow( HWND hWnd , UINT uNotifyMsg )
- int __stdcall UnregisterSkinWindow( HWND hWnd )
- HSKIN __stdcall OpenSkinData( LPCTSTR pszSkinObjectName )
- void __stdcall CloseSkinData( HSKIN hSkin )
- int __stdcall GetSkinControlRect( HSKIN hSkin , RECT* pRect, BOOL* pAutoPlace )
- int __stdcall GetSkinControlID( HSKIN hSkin , DWORD* dwID )
- int __stdcall GetSkinControlFont( HSKIN hSkin , HFONT* phFont , COLORREF* pColor )
- int __stdcall GetSkinControlColor( HSKIN hSkin , COLORREF* pColor )
- int __stdcall GetSkinControlBkColor( HSKIN hSkin , COLORREF* pColor )
- int __stdcall GetSkinTransparentColor( COLORREF* pColor , BOOL* pBool )
- int __stdcall GetSkinFont( HSKIN hSkin,LPCTSTR pszName , LOGFONT* pLogFont , COLORREF* pColor )
- int __stdcall GetSkinColor( HSKIN hSkin , LPCTSTR pszName, COLORREF* pColor )
- int __stdcall GetSkinBool( HSKIN hSkin , LPCTSTR pszName, bool* pbVal )
- int __stdcall GetSkinInt( HSKIN hSkin , LPCTSTR pszName, int* piVal )
- int __stdcall GetSkinDWORD( HSKIN hSkin , LPCTSTR pszName, DWORD* pdwVal )
- int __stdcall GetSkinEnum( HSKIN hSkin , LPCTSTR pszName, DWORD* pdwVal )
- int __stdcall GetSkinString( HSKIN hSkin, LPCTSTR pszName , LPTSTR pszBuff , unsigned long* pMaxBuffChars )
- int __stdcall DrawSkinImageRect( HSKIN hSkin,
- LPCTSTR pszName,
- HDC hdc,
- RECT* pRect
- )
- int __stdcall DrawSkinImageSection( HSKIN hSkin,
- LPCTSTR pszName,
- HDC hdc,
- RECT* pRect )
- int __stdcall DrawSkinImageSectionFrame( HSKIN hSkin,
- LPCTSTR pszName,
- HDC hdc,
- RECT* pRect )
- int __stdcall GetSkinImageSectionMargins( HSKIN hSkin, LPCTSTR pszName , const RECT* pRect , const RECT* pMargins )
- int __stdcall CreateSkinImageRectRegion( HSKIN hSkin,
- LPCTSTR pszName,
- RECT* pBoundRect,
- SIZE* pImgSize,
- HRGN* pRegion)
- int __stdcall CreateSkinImageSectionRegion( HSKIN hSkin,
- LPCTSTR pszName,
- RECT* pRect,
- HRGN* pRegion )
-
- int __stdcall DrawSkinTextEffect( HSKIN hSkin,
- LPCTSTR pszName,
- HDC hdc,
- const RECT* pRect,
- LPCTSTR lpText,
- UINT uLen,
- UINT uFlag )
- HIMAGELIST __stdcall CreateImageList( LPCTSTR pszImageListObjectName )
- struct MENUIMAGEINFO
- {
- UINT itemID
- int iImage
- }
- int __stdcall SetWindowMainMenuImage( HWND hWnd ,
- MENUIMAGEINFO* pMenuImage,
- UINT nCount ,
- HIMAGELIST hImageList ,
- HIMAGELIST hHotImageList,
- HIMAGELIST hDisabledImagelist )
- BOOL __stdcall TrackSkinPopupMenuEx( HMENU hMenu,
- LPCTSTR lpSkinName,
- UINT uFlags,
- int x,
- int y,
- HWND hWnd ,
- MENUIMAGEINFO* pMenuImage,
- UINT nCount ,
- HIMAGELIST hImageList ,
- HIMAGELIST hHotImageList,
- HIMAGELIST hDisabledImagelist )
- int __stdcall RedrawCaptionStatic( HWND hWnd , LPCTSTR lpName )
- DWORD __stdcall GetSkinMagicErrorCode()
- HMENU __stdcall GetSkinMenu( HWND hWnd )
- BOOL __stdcall SetSkinMenu( HWND hWnd , HMENU hMenu )
- #define CPBS_HOVERED 0x00000000
- #define CPBS_PRESSED 0x00000001
- #define CPBS_DISABLED 0x00000002
- #define CPBS_NORMAL 0x00000003
- int __stdcall GetCaptionButtonState(HWND hWnd , LPCTSTR lpName , DWORD* pdwState )
- int __stdcall SetCaptionButtonState(HWND hWnd , LPCTSTR lpName , DWORD dwState )
- int __stdcall SetSkinWindowAccelerator( HWND hWnd, HACCEL hAccTable )
- int __stdcall SetControlTooltip( HWND hWnd , LPCTSTR lpTooltip )
- int __stdcall SetCaptionButtonTooltip( HWND hWnd , LPCTSTR lpName , LPCTSTR lpTooltip )
- int __stdcall ShowTooltipPoint( HWND hWnd , LPCTSTR lpTooltip , LPPOINT lpPoint )
- int __stdcall HideTooltip()
- int __stdcall SetControlSkin( HWND hWnd , LPCTSTR szSkinName, LPCTSTR szOwnerSkinName )
- COLORREF __stdcall GetSkinSysColor( int nIndex )
- HBRUSH __stdcall GetSkinSysColorBrush( int nIndex )
- int __stdcall ShowSkinObject( HWND hWnd , LPCTSTR szSkinObject , BOOL bVisible )
- int __stdcall SetSkinObjectText( HWND hWnd , LPCTSTR szSkinObject , LPCTSTR lpText )
- int __stdcall GetSkinObjectText( HWND hWnd , LPCTSTR szSkinObject , LPTSTR lpText , int nMaxCount )
- int __stdcall GetLibVersion( LPTSTR lpVersion )
- int __stdcall GetSkinClientRect( HWND hWnd, LPRECT lpRect )
- #define WM_CB_MOUSEMOVE WM_USER + 2001
- #define WM_CB_LBUTTONDOWN WM_USER + 2002
- #define WM_CB_RBUTTONDOWN WM_USER + 2003
- #define WM_CB_LBUTTONUP WM_USER + 2004
- #define WM_CB_RBUTTONUP WM_USER + 2005
- #define WM_CB_LBUTTONDBLCLK WM_USER + 2006
- #define WM_CB_MOUSELEAVE WM_USER + 2007
- #define WM_CB_NOTIFY WM_USER + 2008
- #define WM_PAINTCLIENT WM_USER + 2009
- HBITMAP __stdcall CreateBitmapFromSkinImage( LPCTSTR szSkinImageName )
- #pragma pack(pop)
- #endif
|