MzCommonDlg.h文件参考

#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键时的返回值
返回:
返回选中的按钮 YES-1,NO-2,OK-1,RETRY-1,CANCEL-2,ABORT-2,IGNORE-3

void MZFC_API SetWaitDlgDisplayPos ( int  xPos,
int  yPos 
)

设置显示位置


Generated at Fri Feb 20 15:17:30 2009 for Meizu M8 MZFC Documentation by 魅族手机