#include "mzfcdll.h"#include "MzControlDefs.h"宏定义 | |
| #define | MZ_ANIMTYPE_FADE 15 |
| 淡出 | |
| #define | MZ_ANIMTYPE_NONE 0 |
| 无动画 | |
| #define | MZ_ANIMTYPE_SCROLL_BOTTOM_TO_TOP_1 4 |
| 1往上滚动并消失, 2静止并出现 | |
| #define | MZ_ANIMTYPE_SCROLL_BOTTOM_TO_TOP_2 1 |
| 2从下往上滚动出现, 1静止并消失 | |
| #define | MZ_ANIMTYPE_SCROLL_BOTTOM_TO_TOP_PUSH 9 |
| 2从下至上推着1一起滚动并出现 | |
| #define | MZ_ANIMTYPE_SCROLL_LEFT_TO_RIGHT_1 8 |
| 1往右滚动并消失, 2静止并出现 | |
| #define | MZ_ANIMTYPE_SCROLL_LEFT_TO_RIGHT_2 5 |
| 2从左往右滚动出现, 1静止并消失 | |
| #define | MZ_ANIMTYPE_SCROLL_LEFT_TO_RIGHT_PUSH 11 |
| 2从左至右推着1一起滚动并出现 | |
| #define | MZ_ANIMTYPE_SCROLL_RIGHT_TO_LEFT_1 6 |
| 1往左滚动并消失, 2静止并出现 | |
| #define | MZ_ANIMTYPE_SCROLL_RIGHT_TO_LEFT_2 7 |
| 2从右往左滚动出现, 1静止并消失 | |
| #define | MZ_ANIMTYPE_SCROLL_RIGHT_TO_LEFT_PUSH 12 |
| 2从右至左推着1一起滚动并出现 | |
| #define | MZ_ANIMTYPE_SCROLL_TOP_TO_BOTTOM_1 2 |
| 1往下滚动并消失, 2静止并出现 | |
| #define | MZ_ANIMTYPE_SCROLL_TOP_TO_BOTTOM_2 3 |
| 2从上往下滚动出现, 1静止并消失 | |
| #define | MZ_ANIMTYPE_SCROLL_TOP_TO_BOTTOM_PUSH 10 |
| 2从上至下推着1一起滚动并出现 | |
| #define | MZ_ANIMTYPE_ZOOM_IN 13 |
| 2不断放大出现 | |
| #define | MZ_ANIMTYPE_ZOOM_OUT 14 |
| 1不断缩小至不见 | |
| #define | MZ_COLORKEY_RGB (RGB(255,0,255)) |
函数 | |
| MZFC_API void | AnimateBitmap (HBITMAP hBmp1, HBITMAP hBmp2, HDC hdcDst, RECT *prcDst, UINT animType, int nSpeedH=24, int nSpeedV=32) |
| Animate two bitmaps in the destinate DC | |
| MZFC_API void | FreeMzResModule () |
| unload mzres.dll | |
| MZFC_API HMODULE | GetMzResModuleHandle () |
| load and get the mzres.dll 's module handle | |
| MZFC_API HBITMAP | GetPartofBitmap (HBITMAP hBmpSrc, const RECT *prcDst) |
| get a part of a bitmap, return a new bitmap | |
| MZFC_API BOOL | MzDrawControl (HDC hdcDst, RECT *prcDst, int nControlType, int nControlState, DWORD dwData=0) |
| Draw system predefined Graphics: such as UiWin controls | |
| BOOL MZFC_API | MzDrawDeleteItemBg (HDC hdcDst, RECT *prcDst) |
| Draw the BG of list item that is in delete state | |
| MZFC_API BOOL | MzDrawGridDlgBG (HDC hdcDst, RECT *prcDst, BOOL bDrawAngle=TRUE) |
| Draw the BG of dialogs, with round corner and little grid rectangles. | |
| MZFC_API BOOL | MzDrawGridPopupBG_RoundBottom (HDC hdcDst, RECT *prcDst) |
| Draw the BG of pop up dialogs, the bottom side have round corner and little grid rectangles. | |
| MZFC_API BOOL | MzDrawGridPopupBG_RoundTop (HDC hdcDst, RECT *prcDst) |
| Draw the BG of pop up dialogs, the top side have round corner and little grid rectangles. | |
| MZFC_API BOOL | MzDrawGridPopupMenuBG_480 (HDC hdcDst, RECT *prcDst) |
| Draw the BG of pop up menu, width 480 pixels the top side have round corner and little grid rectangles. | |
| MZFC_API BOOL | MzDrawGridPopupMenuBG_720 (HDC hdcDst, RECT *prcDst) |
| Draw the BG of pop up menu, width 720 pixels the top side have round corner and little grid rectangles. | |
| MZFC_API BOOL | MzDrawScrollbarH (HDC hdcDst, RECT *prcDst) |
| draw the horizontal scrollbar | |
| MZFC_API BOOL | MzDrawScrollbarV (HDC hdcDst, RECT *prcDst, INT nResID) |
| draw the vertical scrollbar, nResID: resource ID of the scrollbar in mzres.dll | |
| MZFC_API BOOL | MzDrawScrollbarV (HDC hdcDst, RECT *prcDst) |
| draw the vertical scrollbar | |
| BOOL MZFC_API | MzDrawSelectedBg (HDC hdcDst, RECT *prcDst) |
| Draw the BG of list item that is in selected state | |
| BOOL MZFC_API | MzDrawSelectedBg_NoLine (HDC hdcDst, RECT *prcDst) |
| Draw the BG of list item that is in selected state (not including grid lines) | |
| MZFC_API int | MzDrawText (HDC hDC, LPCTSTR lpString, LPRECT lpRect, unsigned int uFormat) |
| Same as Win32 API DrawText(). (prevent error when string is empty or 0, and string length is not need to provide) | |
| DWORD | MzGetSysColor (int nIndex) |
| MZFC_API HBITMAP | ScreenSnapshot (RECT *prcSrc=0) |
| Get the current screen's as a bitmap: prcSrc get a part of the screen, 0 mean the whole screen. | |
| #define MZ_ANIMTYPE_FADE 15 |
淡出
| #define MZ_ANIMTYPE_NONE 0 |
无动画
| #define MZ_ANIMTYPE_SCROLL_BOTTOM_TO_TOP_1 4 |
1往上滚动并消失, 2静止并出现
| #define MZ_ANIMTYPE_SCROLL_BOTTOM_TO_TOP_2 1 |
2从下往上滚动出现, 1静止并消失
| #define MZ_ANIMTYPE_SCROLL_BOTTOM_TO_TOP_PUSH 9 |
2从下至上推着1一起滚动并出现
| #define MZ_ANIMTYPE_SCROLL_LEFT_TO_RIGHT_1 8 |
1往右滚动并消失, 2静止并出现
| #define MZ_ANIMTYPE_SCROLL_LEFT_TO_RIGHT_2 5 |
2从左往右滚动出现, 1静止并消失
| #define MZ_ANIMTYPE_SCROLL_LEFT_TO_RIGHT_PUSH 11 |
2从左至右推着1一起滚动并出现
| #define MZ_ANIMTYPE_SCROLL_RIGHT_TO_LEFT_1 6 |
1往左滚动并消失, 2静止并出现
| #define MZ_ANIMTYPE_SCROLL_RIGHT_TO_LEFT_2 7 |
2从右往左滚动出现, 1静止并消失
| #define MZ_ANIMTYPE_SCROLL_RIGHT_TO_LEFT_PUSH 12 |
2从右至左推着1一起滚动并出现
| #define MZ_ANIMTYPE_SCROLL_TOP_TO_BOTTOM_1 2 |
1往下滚动并消失, 2静止并出现
| #define MZ_ANIMTYPE_SCROLL_TOP_TO_BOTTOM_2 3 |
2从上往下滚动出现, 1静止并消失
| #define MZ_ANIMTYPE_SCROLL_TOP_TO_BOTTOM_PUSH 10 |
2从上至下推着1一起滚动并出现
| #define MZ_ANIMTYPE_ZOOM_IN 13 |
2不断放大出现
| #define MZ_ANIMTYPE_ZOOM_OUT 14 |
1不断缩小至不见
| #define MZ_COLORKEY_RGB (RGB(255,0,255)) |
| MZFC_API void AnimateBitmap | ( | HBITMAP | hBmp1, | |
| HBITMAP | hBmp2, | |||
| HDC | hdcDst, | |||
| RECT * | prcDst, | |||
| UINT | animType, | |||
| int | nSpeedH = 24, |
|||
| int | nSpeedV = 32 | |||
| ) |
Animate two bitmaps in the destinate DC
the two bitmap should be in the same size.
| [in] | hdcDst | destinate DC |
| [in] | prcDst | destinate Rect |
| [in] | hBmp1 | current bitmap |
| [in] | hBmp2 | new bitmap |
| [in] | animType | animation type (see MZ_ANIMTYPE_XXX prefix values such as MZ_ANIMTYPE_ZOOM_IN) |
| [in] | nSpeedH | horizontal speed, positive |
| [in] | nSpeedV | vertical speed, positive |
| MZFC_API void FreeMzResModule | ( | ) |
unload mzres.dll
| MZFC_API HMODULE GetMzResModuleHandle | ( | ) |
load and get the mzres.dll 's module handle
| MZFC_API HBITMAP GetPartofBitmap | ( | HBITMAP | hBmpSrc, | |
| const RECT * | prcDst | |||
| ) |
get a part of a bitmap, return a new bitmap
| MZFC_API BOOL MzDrawControl | ( | HDC | hdcDst, | |
| RECT * | prcDst, | |||
| int | nControlType, | |||
| int | nControlState, | |||
| DWORD | dwData = 0 | |||
| ) |
Draw system predefined Graphics: such as UiWin controls
| hdcDst | destinate DC to draw to | |
| prcDst | destinate Rect of the DC to draw to | |
| nControlType | Control graphic type (see MzControlDefs.h for details) | |
| nControlState | Control graphic's state(see MzControlDefs.h for details) | |
| dwData | Use 0. Reserved. Different control has different effect. |
| BOOL MZFC_API MzDrawDeleteItemBg | ( | HDC | hdcDst, | |
| RECT * | prcDst | |||
| ) |
Draw the BG of list item that is in delete state
| MZFC_API BOOL MzDrawGridDlgBG | ( | HDC | hdcDst, | |
| RECT * | prcDst, | |||
| BOOL | bDrawAngle = TRUE | |||
| ) |
Draw the BG of dialogs, with round corner and little grid rectangles.
| MZFC_API BOOL MzDrawGridPopupBG_RoundBottom | ( | HDC | hdcDst, | |
| RECT * | prcDst | |||
| ) |
Draw the BG of pop up dialogs, the bottom side have round corner and little grid rectangles.
| MZFC_API BOOL MzDrawGridPopupBG_RoundTop | ( | HDC | hdcDst, | |
| RECT * | prcDst | |||
| ) |
Draw the BG of pop up dialogs, the top side have round corner and little grid rectangles.
| MZFC_API BOOL MzDrawGridPopupMenuBG_480 | ( | HDC | hdcDst, | |
| RECT * | prcDst | |||
| ) |
Draw the BG of pop up menu, width 480 pixels the top side have round corner and little grid rectangles.
| MZFC_API BOOL MzDrawGridPopupMenuBG_720 | ( | HDC | hdcDst, | |
| RECT * | prcDst | |||
| ) |
Draw the BG of pop up menu, width 720 pixels the top side have round corner and little grid rectangles.
| MZFC_API BOOL MzDrawScrollbarH | ( | HDC | hdcDst, | |
| RECT * | prcDst | |||
| ) |
draw the horizontal scrollbar
| MZFC_API BOOL MzDrawScrollbarV | ( | HDC | hdcDst, | |
| RECT * | prcDst, | |||
| INT | nResID | |||
| ) |
draw the vertical scrollbar, nResID: resource ID of the scrollbar in mzres.dll
| MZFC_API BOOL MzDrawScrollbarV | ( | HDC | hdcDst, | |
| RECT * | prcDst | |||
| ) |
draw the vertical scrollbar
| BOOL MZFC_API MzDrawSelectedBg | ( | HDC | hdcDst, | |
| RECT * | prcDst | |||
| ) |
Draw the BG of list item that is in selected state
| BOOL MZFC_API MzDrawSelectedBg_NoLine | ( | HDC | hdcDst, | |
| RECT * | prcDst | |||
| ) |
Draw the BG of list item that is in selected state (not including grid lines)
| MZFC_API int MzDrawText | ( | HDC | hDC, | |
| LPCTSTR | lpString, | |||
| LPRECT | lpRect, | |||
| unsigned int | uFormat | |||
| ) |
Same as Win32 API DrawText(). (prevent error when string is empty or 0, and string length is not need to provide)
| DWORD MzGetSysColor | ( | int | nIndex | ) |
| MZFC_API HBITMAP ScreenSnapshot | ( | RECT * | prcSrc = 0 |
) |
Get the current screen's as a bitmap: prcSrc get a part of the screen, 0 mean the whole screen.