messagebox.h

来自「多媒体电话记录程序」· C头文件 代码 · 共 61 行

H
61
字号
/////////////////////////////////////////////////////////////////////////////
//  Name: messagebox.h
//  Copyright: wellgain
//  Author: bet
//  Date: 2003-10-21
//  Description:  interface for the MessageBox function.
/////////////////////////////////////////////////////////////////////////////
#ifndef _WG_MESSAGEBOX_H_
#define _WG_MESSAGEBOX_H_

#include <stdlib.h>

#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */

typedef unsigned int UINT;

#ifdef ARM
	#define MSGBOX_XPMFILEPATH	"/root/xpm/public/"
#else
	#define MSGBOX_XPMFILEPATH	"/home/an/bet/xpm/"
#endif // ARM 

enum Stock_Icon { stock_none=0, 
				  stock_error, 
				  stock_info, 
				  stock_question, 
				  stock_warning 
				};

// buttons
#define MB_Yes				1<<0
#define MB_YesAll			1<<1
#define MB_No				1<<2
#define MB_OK				1<<3
#define MB_Cancel			1<<4

// response
#define ID_Yes				MB_Yes
#define ID_YesAll			MB_YesAll
#define ID_No				MB_No
#define ID_OK				MB_OK
#define ID_Cancel			MB_Cancel

#define ID_None				0


int MessageBox(const char* szText, const char* szCaption, 
			   int icon, UINT uType);




#ifdef __cplusplus
}
#endif /* __cplusplus */

#endif // _WG_MESSAGEBOX_H_

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?