dialog.h

来自「这是一个开放源代码的与WINNT/WIN2K/WIN2003兼容的操作系统」· C头文件 代码 · 共 44 行

H
44
字号
#ifndef __DIALOG_H
#define __DIALOG_H

#include "dlg.h"

#define MSG_ERROR ((char *) -1)
Dlg_head *message (int error, char *header, char *text, ...);

int query_dialog (char *header, char *text, int flags, int count, ...);

enum {
   D_NORMAL = 0,
   D_ERROR  = 1,
   D_INSERT = 2
} /* dialog options */;

/* The refresh stack */
typedef struct Refresh {
    void (*refresh_fn)(void *);
    void *parameter;
    int  flags;
    struct Refresh *next;
} Refresh;

/* We search under the stack until we find a refresh function that covers */
/* the complete screen, and from this point we go up refreshing the */
/* individual regions */

enum {
    REFRESH_COVERS_PART,	/* If the refresh fn convers only a part */
    REFRESH_COVERS_ALL		/* If the refresh fn convers all the screen */
};

void push_refresh (void (*new_refresh)(void *), void *data, int flags);
void pop_refresh (void);
void do_refresh (void);
void my_wputs (int y, int x, char *text);
char *input_dialog (char *header, char *text, char *def_text);
char *input_expand_dialog (char *header, char *text, char *def_text);

extern Refresh *refresh_list;

#endif	/* __DIALOG_H */

⌨️ 快捷键说明

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