⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 wmgr_confirm.c

📁 操作系统SunOS 4.1.3版本的源码
💻 C
字号:
#ifndef lint#ifdef sccsstatic  char sccsid[] = "@(#)wmgr_confirm.c 1.1 92/07/30";#endif#endif/* * Copyright (c) 1989 by Sun Microsystems, Inc. *//* * wmgr_confirm() */#include <suntool/tool_hs.h>#include <suntool/menu.h>intwmgr_confirm(windowfd, text)        int     windowfd;        char    *text;{        int     returncode = 0;        struct  prompt prompt;        struct  inputevent event;        extern  struct pixfont *pw_pfsysopen();         /*         * Display a prompt         */        rect_construct(&prompt.prt_rect,            PROMPT_FLEXIBLE, PROMPT_FLEXIBLE,            PROMPT_FLEXIBLE, PROMPT_FLEXIBLE);        prompt.prt_font = pw_pfsysopen();        prompt.prt_text = text;/******** ALERTS REPLACEMENT FLAG 017 ********/        (void)menu_prompt(&prompt, &event, windowfd);        (void)pw_pfsysclose();        /*         * See if user wants to continue operation based on last action         */        if ((event_action(&event)==SELECT_BUT) && win_inputposevent(&event))                     returncode = -1;        return(returncode);}

⌨️ 快捷键说明

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