#include "MZFC.h"#include "MzMessageBox.h"#include "MzAutoMsgbox.h"#include "mzfclib.h"宏定义 | |
| #define | MZ_ABORTRETRYIGNORE 2 |
| #define | MZ_OK 0 |
| #define | MZ_OKCANCEL 1 |
| #define | MZ_RETRYCANCEL 5 |
| #define | MZ_YESNO 4 |
| #define | MZ_YESNOCANCEL 3 |
函数 | |
| DWORD MZFC_API | MzAutoMsgBoxEx (HWND hWnd, const TCHAR *content, DWORD DisplayTime=2000) |
| void MZFC_API | MzBeginWaitDlg (HWND hWnd, RECT *pRect=NULL, BOOL bBgTrans=FALSE) |
| 开始显示等待对话框 | |
| void MZFC_API | MzEndWaitDlg () |
| 结束显示等待对话框 | |
| DWORD MZFC_API | MzInfoTip (HWND hWnd, const TCHAR *content, POINT pt, DWORD DisplayTime=2000) |
| int MZFC_API | MzMessageBoxEx (HWND hWnd, const TCHAR *content, const TCHAR *title, int nType=MZ_OK, int nHomeKeyReturnValue=SHK_RET_DEFAULT) |
| 提示对话框 | |
| void MZFC_API | SetWaitDlgDisplayPos (int xPos, int yPos) |
| #define MZ_ABORTRETRYIGNORE 2 |
| #define MZ_OK 0 |
| #define MZ_OKCANCEL 1 |
| #define MZ_RETRYCANCEL 5 |
| #define MZ_YESNO 4 |
| #define MZ_YESNOCANCEL 3 |
| DWORD MZFC_API MzAutoMsgBoxEx | ( | HWND | hWnd, | |
| const TCHAR * | content, | |||
| DWORD | DisplayTime = 2000 | |||
| ) |
| void MZFC_API MzBeginWaitDlg | ( | HWND | hWnd, | |
| RECT * | pRect = NULL, |
|||
| BOOL | bBgTrans = FALSE | |||
| ) |
开始显示等待对话框
| void MZFC_API MzEndWaitDlg | ( | ) |
结束显示等待对话框
| DWORD MZFC_API MzInfoTip | ( | HWND | hWnd, | |
| const TCHAR * | content, | |||
| POINT | pt, | |||
| DWORD | DisplayTime = 2000 | |||
| ) |
| int MZFC_API MzMessageBoxEx | ( | HWND | hWnd, | |
| const TCHAR * | content, | |||
| const TCHAR * | title, | |||
| int | nType = MZ_OK, |
|||
| int | nHomeKeyReturnValue = SHK_RET_DEFAULT | |||
| ) |
提示对话框
| hWnd | [in] 窗口句柄 | |
| content | [in] 提示的内容 | |
| title | [in] 标题(目前设置标题是无效的) | |
| nType | [in] 显示的按钮类型 MZ_OK 、 MZ_OKCANCEL 、 MZ_ABORTRETRYIGNORE 、 MZ_YESNOCANCEL 、 MZ_YESNO 、 MZ_RETRYCANCEL | |
| nHomeKeyReturnValue | [in] 设置此窗口在收到Home键时的返回值 |
| void MZFC_API SetWaitDlgDisplayPos | ( | int | xPos, | |
| int | yPos | |||
| ) |
设置显示位置