📄 ngui.h
字号:
/*NEO SDK V2.1.90 For DOS
Copyleft Cker Home 2003-2006.
Open Source Obey NEO_PL.TXT.
http://neo.coderlife.net
ckerhome@yahoo.com.cn
文件名称 : ngui.h
摘 要 : 本头文件中包含了NEO SDK里有关GUI初始化的各种函数、结构、全局变量
的声明及定义
当前版本 : V0.07
作 者 : 董凯
完成日期 : 2006.02.07
取代版本 : V0.06
原 作 者 : 董凯
完成日期 : 2006.01.04
*/
#ifndef NGUI_H
#define NGUI_H
/*======================================================*
* 宏和结构的定义(Macro & type definitions) *
*======================================================*/
#if 0
typedef struct GUI_T
{
int x;
int y;
int width;
int height; /* 对象的位置和大小 */
int hotkey; /* ASCII键盘快捷码 */
int flags; /* 对象状态标记 */
int u1;
int u2; /* 用户自己任意设置该两项 */
int (*proc)(int msg, struct GUI_T *d, int c); /* 对话过程(消息句柄dialog procedure) */
void *dp1;
void *dp2;
void *dp3; /* 指向其他对象数据的指针 */
}GUI_t;
#endif
/*======================================================*
* 函数声明(Function declare) *
*======================================================*/
char neo_message(char *title, char *message);
/*======================================================*
* 函数定义(Function definitions) *
*======================================================*/
/*弹出一个标题为title,内容为message的消息窗口*/
char neo_message(char *title, char *message)
{
FILE *fout;
#ifndef NEO_temp_dir_unused
char vbspath[] = "neotemp\\neo.vbs";
#else
char vbspath[] = "neo.vbs";
#endif
if ((fout=fopen(vbspath, "w")) == NULL)
{
#ifndef NEO_sys_report_error_unused
Errinfo_t error = {"neo_message", CREAT_FILE_FALSE, 1};
throw_error(error);
#endif
return FALSE;
}
fprintf(fout, "msgbox \"%s\",0,\"%s\"", message, title);
fclose(fout);
#ifndef NEO_temp_dir_unused
system("wscript.exe neotemp\\neo.vbs");
#else
system("wscript.exe neo.vbs");
#endif
return TRUE;
}
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -