1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586 |
- #ifndef _LIBRARY_HEADER
- #define _LIBRARY_HEADER
- BOOL IRStartup( HINSTANCE hModule, DWORD dwThreadID );
- BOOL IRComplete( void );
- #include "BitmapEx.h"
- #include "DialogExt.h"
- #include <windows.h>
- #include <afxtempl.h>
- extern BOOL g_bDrawBk;
- extern HHOOK globalWndHookEx;
- extern CMapPtrToPtr g_ctrlMap;
- extern CArray<DWORD,DWORD>g_wndstatelist;
- extern COLORREF g_crDialogbkColor ;
- extern HBRUSH g_frameedgebrush;
- extern HPEN g_frameedgepen;
- extern COLORREF gChecks_crGradientXP[][4];
- extern BOOL bReg;
- extern HINSTANCE g_dllinst;
- extern HINSTANCE g_maininst;
- #define CXPM_SETSTATE(Data, Mask, IsSet) ((IsSet) ? (Data |= Mask) : (Data &= ~Mask))
- #define CXPS_SPINEDIT 0x00000003L
- #define CXPS_DISABLED 0x00000001L
- #define CXPS_PRESSED 0x00000002L
- #define CXPS_HOTLIGHT 0x00000004L
- #define CXPS_FOCUS 0x00000008L
- #define CXPS_DEFAULT 0x00000010L
- #define CXPS_CHECKED 0x00000020L
- #define CXPS_INDETERMINATE 0x00000040L
- #define CXPS_READONLY 0x00000080L
- #define CXPS_NOPAINT 0x00000100L
- #define CXPS_PAINT 0x00000200L
- #define CXPS_HORIZON 0x00000400L
- #define CXPS_VERTICAL 0x00000800L
- #define CXPH_LARGEARROW 0x01000000L
- #define CXPH_DROPHANDLE 0x02000000L
- #define CXPH_SMALLARROW 0x04000000L
- #define CXPH_LEFTWARDS 0x08000000L
- #define CXPH_UPWARDS 0x10000000L
- #define CXPH_RIGHTWARDS 0x20000000L
- #define CXPH_DOWNWARDS 0x40000000L
- #define CXPH_HASFRAME 0x80000000L
- #define CXPH_AREA 0x00100000L
- #define CXPU_UPPART 0x00010000L
- #define CXPU_MIDDLEPART 0x00020000L
- #define CXPU_DOWNPART 0x00040000L
- #define CXPU_ALIGNLEFT 0x00100000L
- #define CXPU_ALIGNRIGHT 0x00200000L
- int FindPos(DWORD str, CArray<DWORD,DWORD> &array);
- typedef struct tagMEMDCXP
- {
- HWND hWnd;
- HDC hDC;
- HDC hMemDC;
- BOOL bTransfer;
- HBITMAP hBitmap;
- }MEMDCXP, * LPMEMDCXP;
- typedef struct
- {
- SCROLLINFO HorzInfo;
- SCROLLINFO VertInfo;
- DWORD style;
- }MYSCROLL;
- HDC GetMemDCXP(LPMEMDCXP pMdcxp);
- VOID ReleaseMemDCXP(LPMEMDCXP pMdcxp);
- VOID GradientRectXP(HDC hDC, LPRECT pRect,COLORREF crColor[4]);
- void DrawScrollBars(HWND m_hWnd, HDC hDC, const RECT& rect );
- VOID ScrollDrowThumbXP(HDC hDC, RECT Rect, LONG lState);
- void DrawScrollBar(HWND m_hWnd, HDC hDC, const RECT& rect, int nType, BOOL bScrollbarCtrl=FALSE );
- int GetPosFromHwnd(HWND hWnd);
- #endif
|