00001
00002
00015
00016
00017
00018
00019 #ifndef DIALOG_H
00020
00021 #define DIALOG_H
00022
00023
00024
00025
00026
00027 #include "main.h"
00028
00029
00030
00031
00032
00033
00035 #define DIALOG_LETTERS_FLAG 0x01
00037 #define DIALOG_CAPITALS_FLAG 0x02
00039 #define DIALOG_WHITESPACE_FLAG 0x04
00041 #define DIALOG_DASH_FLAG 0x08
00043 #define DIALOG_NUMBERS_FLAG 0x10
00045 #define DIALOG_SPECIAL_FLAG 0x20
00047 #define DIALOG_ALL_LETTERS 0xFF
00048
00049
00051 #define DIALOG_PREV_FLAG 0x01
00052
00054 #define DIALOG_ESC_FLAG 0x02
00055
00057 #define DIALOG_BACKSPACE_FLAG 0x04
00058
00060 #define DIALOG_NEXT_FLAG 0x08
00061
00063 #define DIALOG_DESCRIPTION_FLAG 0x10
00064
00066 #define DIALOG_DESCTOGGLE_FLAG 0x20
00067
00068
00069
00070
00071
00072
00073 typedef enum
00074 {
00075 DIALOG_FINI_OK = 0,
00076 DIALOG_FINI_ESC,
00077 DIALOG_FINI_CANCEL
00078 } DialogRetValue_t;
00079
00080
00081
00082
00083
00084 BOOL bInitInputDialog(BYTE * pu8DefaultString, BYTE u8AllowedCharacters,
00085 BYTE u8DispRow, BYTE u8MaxCursorPos, BYTE u8ControlFlags);
00086 BOOL bHandleInputDialog(void);
00087 DialogRetValue_t FiniDialog(BYTE * pResultString);
00088
00091
00092
00093
00094
00095
00096 #endif // #ifndef DIALOG_H