1
/***************************************************************************
2
messagebox.h - description
4
begin : Tue Nov 12 2002
5
copyright : (C) 2002 by blight
6
email : blight@Ashitaka
7
***************************************************************************/
9
/***************************************************************************
11
* This program is free software; you can redistribute it and/or modify *
12
* it under the terms of the GNU General Public License as published by *
13
* the Free Software Foundation; either version 2 of the License, or *
14
* (at your option) any later version. *
16
***************************************************************************/
18
#ifndef __MESSAGEBOX_H__
19
#define __MESSAGEBOX_H__
22
// The message box contains three push buttons: Abort, Retry, and Ignore.
23
#define MB_ABORTRETRYIGNORE (0x00000001)
24
// Microsoft� Windows� 2000/XP: The message box contains three push buttons: Cancel, Try Again, Continue. Use this message box type instead of MB_ABORTRETRYIGNORE.
25
#define MB_CANCELTRYCONTINUE (0x00000002)
26
// The message box contains one push button: OK. This is the default.
27
#define MB_OK (0x00000004)
28
// The message box contains two push buttons: OK and Cancel.
29
#define MB_OKCANCEL (0x00000008)
30
// The message box contains two push buttons: Retry and Cancel.
31
#define MB_RETRYCANCEL (0x00000010)
32
// The message box contains two push buttons: Yes and No.
33
#define MB_YESNO (0x00000020)
34
// The message box contains three push buttons: Yes, No, and Cancel.
35
#define MB_YESNOCANCEL (0x00000040)
37
// An exclamation-point icon appears in the message box.
38
#define MB_ICONEXCLAMATION (0x00000100)
39
#define MB_ICONWARNING (0x00000100)
40
// An icon consisting of a lowercase letter i in a circle appears in the message box.
41
#define MB_ICONINFORMATION (0x00000200)
42
#define MB_ICONASTERISK (0x00000200)
43
// A question-mark icon appears in the message box.
44
#define MB_ICONQUESTION (0x00000400)
45
// A stop-sign icon appears in the message box.
46
#define MB_ICONSTOP (0x00000800)
47
#define MB_ICONERROR (0x00000800)
48
#define MB_ICONHAND (0x00000800)
54
// returns 1 if the first button was clicked, 2 for the second and 3 for the third
55
int messagebox( const char *title, int flags, const char *fmt, ... );
60
#endif // __MESSAGEBOX_H__