#include <mzfc/MZFC.h>
#include <mzfc/MzMessageBox.h>
#include <mzfc/MzAutoMsgbox.h>
#include <mzfc/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 hWndOwner, 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 | MzMessageBox (HWND hWnd, LPCTSTR lpText, LPCTSTR lpCaption, UINT uType, UINT uTimeOut=0, BOOL bTopMost=FALSE) |
和Windows MessageBox兼容的提示对话框,支持MB_OK,MB_OKCANCEL,MB_ABORTRETRYIGNORE,MB_YESNOCANCEL,MB_YESNO,MB_RETRYCANCEL这几种类型 | |
int MZFC_API | MzMessageBoxEx (HWND hWnd, const TCHAR *content, const TCHAR *title, int nType=MZ_OK, int nHomeKeyReturnValue=SHK_RET_DEFAULT) |
提示对话框 | |
int MZFC_API | MzMessageBoxWithTip (HWND hWnd, LPCTSTR lpText, LPCTSTR lpCaption, LPCTSTR lpTip, UINT uType=MB_OK, UINT uTimeOut=0, BOOL bTopMost=FALSE, BOOL bExitOnLockPhone=FALSE) |
和Windows MessageBox兼容的提示对话框,支持MB_OK,MB_OKCANCEL,MB_ABORTRETRYIGNORE,MB_YESNOCANCEL,MB_YESNO,MB_RETRYCANCEL这几种类型 |
#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 | hWndOwner, | |
RECT * | pRect = NULL , |
|||
BOOL | bBgTrans = FALSE | |||
) |
开始显示等待对话框
开始显示等待对话框。调用线程仍然是畅通的,不会被阻塞。 调用线程可随时执行 MzEndWaitDlg() 来结束等待对话框。
hWndOwner | 等待对话框的Owner窗口句柄。等待对话框显示后,hWndOwner将被禁用;等待对话框结束后,hWndOwner将重新被启用。 | |
pRect | 等待对话框的位置大小矩形(位置是以屏幕左上角为原点的) | |
bBgTrans | 背景是否半透明 |
void MZFC_API MzEndWaitDlg | ( | ) |
结束等待对话框
结束由 MzBeginWaitDlg() 创建的等待对话框。
DWORD MZFC_API MzInfoTip | ( | HWND | hWnd, | |
const TCHAR * | content, | |||
POINT | pt, | |||
DWORD | DisplayTime = 2000 | |||
) |
int MZFC_API MzMessageBox | ( | HWND | hWnd, | |
LPCTSTR | lpText, | |||
LPCTSTR | lpCaption, | |||
UINT | uType, | |||
UINT | uTimeOut = 0 , |
|||
BOOL | bTopMost = FALSE | |||
) |
和Windows MessageBox兼容的提示对话框,支持MB_OK,MB_OKCANCEL,MB_ABORTRETRYIGNORE,MB_YESNOCANCEL,MB_YESNO,MB_RETRYCANCEL这几种类型
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键时的返回值 |
int MZFC_API MzMessageBoxWithTip | ( | HWND | hWnd, | |
LPCTSTR | lpText, | |||
LPCTSTR | lpCaption, | |||
LPCTSTR | lpTip, | |||
UINT | uType = MB_OK , |
|||
UINT | uTimeOut = 0 , |
|||
BOOL | bTopMost = FALSE , |
|||
BOOL | bExitOnLockPhone = FALSE | |||
) |
和Windows MessageBox兼容的提示对话框,支持MB_OK,MB_OKCANCEL,MB_ABORTRETRYIGNORE,MB_YESNOCANCEL,MB_YESNO,MB_RETRYCANCEL这几种类型