亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來(lái)到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? boss.man

?? BOSS窗口開發(fā) C 語(yǔ)言程序庫(kù)
?? MAN
?? 第 1 頁(yè) / 共 5 頁(yè)
字號(hào):

        /* End */










                                                           Page: 5
                                                     The Window BOSS



        4.2. Data Entry Basics

        Lets expand our "hello" program to prompt and fetch a name.

        #include "windows.h"            /* REQUIRED */
        main()
        {
        WINDOWPTR w1;                   /* window handle */
        int batrib;                     /* border atrib */
        int watrib;                     /* window atrib */
        char name[15];                  /* name */

        /*
         * Set attributes:
         *
         *      border - blue/white box
         *      window - white background/black letters
         *
        */

          batrib = (BLUE << 4) | WHITE; /* border atrib */
          watrib = (WHITE <<4) | BLACK; /* window atrib */

        /*
         * Open window at 0,0 - 25 cells wide and 10 cells high
        */

          w1 = wn_open(0,0,0,25,10,watrib,batrib);
          if(!w1) exit();       

        /*
         * Print the famous string, prompt and fetch a name, 
         * wait for key to be struck.
         * Close window on key strike.. exit.
        */

          wn_printf(w1,"Hello World...");

          *name = NUL;                  /* init buffer for name */
          wn_gtext(XEQ,NFRM,NFLD,w1,2,1,"Name: ",watrib,'_',15,name,NSTR,NSTR);

          v_getch();                    /* wait for key */
          wn_close(w1);                 /* close the window */
          exit(0);                      /* and exit */
        }

        /* End */









                                                           Page: 6
                                                     The Window BOSS



        4.3. Form Basics

        Now we will expand a bit further to read a 2 field form.

        #include "windows.h"            /* REQUIRED */
        main()
        {
        WINDOWPTR w1;                   /* window handle */
        WIFORM f1;                      /* form handle */
        int batrib;                     /* border atrib */
        int watrib;                     /* window atrib */
        char name[15];                  /* name */
        char city[15];                  /* city */

        /*
         * Set attributes:
         *
         *      border - blue/white box
         *      window - white background/black letters
         *
        */

          batrib = (BLUE << 4) | WHITE; /* border atrib */
          watrib = (WHITE <<4) | BLACK; /* window atrib */

        /*
         * Open window at 0,0 - 25 cells wide and 10 cells high
        */

          w1 = wn_open(0,0,0,25,10,watrib,batrib);
          if(!w1) exit();       

        /*
         * Print the famous string, create, define, and fetch form
         * wait for key to be struck.
         * Close window on key strike.. exit.
        */

          wn_printf(w1,"Hello World...");

          *name = NUL;                  /* init buffer for name */
          *city = NUL;                  /* init buffer for city */
          f1 = wn_frmopn(3);            /* open form 2 + 1 Fields */
          wn_gtext(SET,f1,0,w1,2,1,"Name: ",watrib,'_',15,name,NSTR,NSTR);
          wn_gtext(SET,f1,1,w1,3,1,"City: ",watrib,'_',15,city,NSTR,NSTR);
          wn_frmget(f1);                /* read the form */

          v_getch();                    /* wait for key */
          wn_frmcls(f1);                /* first close the form */
          wn_close(w1);                 /* then close the window */
          exit(0);                      /* and exit */
        }




                                                           Page: 7
                                                     The Window BOSS



        4.4. Popup Menu Basics

        Popup and pulldown menus add that extra sparkle to your 
        applications.  The Window BOSS includes a simple popup menu 
        system that is fast and easy to use.  The system consists of two 
        functions; wn_popup() and wn_qpopup().  wn_popup() is an 
        interactive version of wn_qpopup().  That is to say that 
        wn_popup() can be used to solicit user input while wn_qpopup is a 
        *information only* popup.  The "q" in qpopup stands for 'quick'.  
        Both functions have function parameters and require the menu 
        structure "pmenu" to be initialized.  "pmenu" is defined in 
        "windows.h".

        Popup menus, like windows, have size (height & width), an origin 
        (row & column), and attributes (text & border).  These are passed 
        as parameters to both wn_popup and wn_qpopup in the same fashion 
        as they would be for a call to wn_open.  In addition to the 
        normal window stuff, popup menus also have information that needs 
        to be displayed and, in some cases, information that needs to be 
        returned, to the calling function.  This additional information 
        is passed to popup via the pmenu structure.  The pmenu structure 
        allows us to tell wn_popup what text is to be displayed where, 
        and what value (return code), if any, is to be provided back to 
        the calling function.

        Both wn_popup and wn_qpopup call wn_open to open a window defined 
        by the calling parameters. Calls to wn_putsa are then made to 
        display the text defined in pmenu within the window just opened 
        at the location in the window specified by the values defined in 
        pmenu.  A menu item is highlighted by moving either the cursor 
        keys, space bar, or by pressing the first character of the menu 
        item desired.  Control is passed back to the calling function 
        when the 'Enter' or 'Escape' key is pressed. Here is a typical 
        call to wn_popup:

            wat = (WHITE<<4|BLACK);
            bat = (BLUE<<4|WHITE); 
            rv = wn_popup(0, 0, 0, 33, 14, wat, bat, &intelc, FALSE);
                          |                       |  |     |  |   |
                          +-------\/--------------+  |     |  |   |
                             Normal wn_open parms    |     |  |   |
                                                     |     |  |   |
                                  pmenu structure  <-+-----+  |   |
                                                              |   |
                                        window close flag   <-+---+

        The normal wn_open parameters define the popup menu's location, 
        size, and color.  The pmenu structure address allows wn_popup and 
        wn_qpopup to access the contents of the intelc pmenu structure.  
        The window close flag is used to tell wn_popup whether or not to 
        close the popup menu when returning to the calling function. 
        Telling wn_popup to not to close the menu when returning to the 
        calling function allows you to create nested popups.



                                                           Page: 8
                                                     The Window BOSS



        Popup Menu Basics - continued.



        Lets examine the pmenu structure definition from windows.h:

          struct mitem {              /* POPUP menu item template */
            int r;                    /* row */
            int c;                    /* col */
            char *t;                  /* text */
            int rv;                   /* return value */
          };

          struct pmenu {              /* POPUP menu structure */
            WINDOWPTR wpsave;         /* place to hold window id */
            int winopn;               /* leave window open flag */
            int lndx;                 /* last index */
            int fm;                   /* first menu item index */
            int lm;                   /* last menu item index */
            struct mitem scrn[WN_MXROWS*4]; /* a bunch of menu items */
          };                          /* NOTE RELATIVE LIMIT */

          mitem - Popup menus contain a number of menu items. Each menu 
          item has a location (within the window), text (to be displayed 
          in the window), and an integer return code that is passed back 
          to the calling function to let the caller know which menu item 
          was selected.  "r" and "c" define the row and column, "t" is a 
          pointer to the text, and rv is integer return code.
             
          pmenu - In addition to the information needed about each menu 
          item, we need to do some internal housekeeping on the popup 
          menu itself.  "wpsave" is used to store the WINDOWPTR that was 
          returned from the call to wn_open made by popup. "winopn" is 
          used internally by popup as an indicator of whether or not the 
          window referenced by wpsave is currently open.  "lndx" is used 
          internally to hold the index of the menu item last referenced 
          or selected.  The combination of "wpsave", "winopn", and "lndx" 
          provide wn_popup with the ability to correctly handle both 
          nested and non-nested popups.  The structure members "wpsave", 
          "winopn", "lndx" should not be modified, only initialized. 
















                                                           Page: 9
                                                     The Window BOSS



        Popup Menu Basics - continued.



          The Window BOSS's popup menus allow you to have informational 
          headers and trailers.  This is handy for providing multiple 
          line titles and or trailing instructional messages.  Consider 
          the following:

             +---------------------------------+
             |                                 |
             |           Intellicom            |   <- Informational
             |          Quick - Help           |   <- Informational
             |                                 |
             |     1 General Information       |   <- Action item
             |     2 Terminal Mode Options     |   <- Action item
             |     3 XMODEM File Send          |   <- Action item
             |     4 XMODEM File Receive       |   <- Action item
             |     5 CompuServe Exec Mode      |   <- Action item  
             |                                 |
             |  Press: ESC to quit or Cursor   |   <- Informational
             |   Keys to Position Cursor then  |   <- Informational 
             |   press RETURN for MORE info.   |   <- Informational
             |                                 |
             +---------------------------------+

          In the above popup there are 10 menu items, 5 are action 
          oriented, and 5 are informational.  They are numbered 0 through 
          9 and correspond to the "scrn" array of pointers in the pmenu 
          structure. "fm" and "lm" are the indexes of the first and last 
          action items in scrn array.  In the case of the above popup, fm 
          and lm would be initialized to 2 and 6 respectively. "fm" and 
          "lm", like the other housekeeping structure members should not 
          be modified only initialized.  The pmenu structure for this 
          popup is as follows: 

          static struct pmenu intelc = {
            0, FALSE, 0,                     /* wpsave, winopn, lndx */
             2, 6, {                         /* fm, lm */
             1, 2, "         Intellicom", 0,            /** ----- **/
             2, 2, "        Quick - Help", 0,           /*    |    */ 
             4, 5, "1 General Information  ", 1,        /*    |    */
             5, 5, "2 Terminal Mode Options", 2,        /*    |    */
             6, 5, "3 XMODEM File Send     ", 3,        /* 10 menu */
             7, 5, "4 XMODEM File Receive  ", 4,        /*  items  */
             8, 5, "5 CompuServe Exec Mode ", 5,        /*         */
            10, 2, "Press: ESC to quit or Cursor", 0,   /*         */
            11, 2, " Keys to Position Cursor then", 0,  /*         */
            12, 2, " press RETURN for MORE info.", 0,   /** ----- **/
            99, 99, "",99 }                 /* ALWAYS ADD THIS LINE */
          };
          




                                                           Page: 10
                                                     The Window BOSS



        Popup Menu Basics - continued.



        The end of the pmenu structure is designated by defining a menu 
        item at row 99, column 99, with null text, with a return code of 
        99.  THIS MUST ALWAYS BE DONE!

          Example:
             
             #include "windows.h"

             static struct pmenu intelc = {
               0, FALSE, 0,
               2, 6, {
               1, 2, "         Intellicom", 0,
               2, 2, "        Quick - Help", 0,
               4, 5, "1 General Information  ", 1,
               5, 5, "2 Terminal Mode Options", 2,
               6, 5, "3 XMODEM File Send     ", 3,
               7, 5, "4 XMODEM File Receive  ", 4,
               8, 5, "5 CompuServe Exec Mode ", 5,
              10, 2, "Press: ESC to quit or Cursor", 0,
              11, 2, " Keys to Position Cursor then", 0,
              12, 2, " press RETURN for MORE info.", 0,
              99, 99, "",99 }

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲一区国产视频| 五月天激情小说综合| 在线观看国产精品网站| 免费黄网站欧美| 中文字幕日本不卡| 欧美sm极限捆绑bd| 欧美色综合网站| 成人教育av在线| 国内精品伊人久久久久影院对白| 亚洲啪啪综合av一区二区三区| 久久先锋影音av鲁色资源| 欧美性做爰猛烈叫床潮| 欧美艳星brazzers| 777精品伊人久久久久大香线蕉| 成人av电影在线播放| 99精品国产视频| 国产寡妇亲子伦一区二区| 免费欧美在线视频| 老汉av免费一区二区三区| 亚洲国产精品自拍| 中文字幕一区二区三区四区| 中文字幕亚洲成人| 一区二区视频在线看| 日韩欧美成人激情| 91精品久久久久久蜜臀| 欧美精品一区二区三区四区| 欧美高清视频www夜色资源网| 色综合久久综合中文综合网| 国产乱码精品一区二区三区忘忧草 | 国产老妇另类xxxxx| 国产99久久久国产精品潘金网站| 免费在线看成人av| 精品一区二区三区在线观看 | 中文字幕在线观看一区二区| 亚洲精品中文在线| 日本欧美一区二区在线观看| 午夜久久久影院| 激情六月婷婷久久| 99久久综合色| 99视频在线精品| 欧美日韩专区在线| 欧美日韩一级片在线观看| 日韩欧美久久久| 国产精品久久夜| 中文字幕一区二区三区在线不卡| 亚洲成人动漫在线观看| 亚洲123区在线观看| 国内精品伊人久久久久影院对白| 色又黄又爽网站www久久| 91精品国产入口在线| 日韩欧美色综合网站| 国产精品久久久久久一区二区三区| 亚洲精品成人精品456| 激情偷乱视频一区二区三区| 99精品偷自拍| 日韩欧美第一区| 亚洲精选在线视频| 黑人巨大精品欧美黑白配亚洲| 91视频91自| 在线不卡a资源高清| 国产精品五月天| 一级特黄大欧美久久久| 国产在线精品视频| 北条麻妃一区二区三区| 日韩午夜激情电影| 久久精品视频网| 亚洲欧美日韩在线不卡| 国产中文字幕一区| 欧美人妖巨大在线| 精品精品国产高清一毛片一天堂| 亚洲欧美激情在线| 国产在线精品一区在线观看麻豆| 精品视频在线免费看| 国产精品日韩成人| 久久超级碰视频| 欧美日韩在线三级| 成人免费在线播放视频| 国内精品不卡在线| 日韩区在线观看| 亚洲不卡一区二区三区| 91欧美激情一区二区三区成人| 久久精品视频一区二区| 精品无码三级在线观看视频| 欧美日韩一级二级| 一区二区三区日韩在线观看| 成人国产精品视频| 精品sm捆绑视频| 日本亚洲最大的色成网站www| 一本色道**综合亚洲精品蜜桃冫| 国产日韩精品一区二区三区| 亚洲mv大片欧洲mv大片精品| 99精品桃花视频在线观看| 久久久久久久网| 亚洲午夜av在线| 色婷婷综合久久| 中文字幕五月欧美| av资源站一区| 亚洲国产精品成人综合| 视频一区免费在线观看| 成人高清伦理免费影院在线观看| 国产午夜精品久久久久久久| 国产一区在线不卡| 久久久久久久久免费| 精久久久久久久久久久| 久久午夜老司机| 久草在线在线精品观看| 精品奇米国产一区二区三区| 91猫先生在线| 日韩亚洲欧美中文三级| 亚洲视频一区二区在线观看| 欧美大尺度电影在线| 裸体在线国模精品偷拍| 欧美三区免费完整视频在线观看| 日韩国产高清影视| 国产人妖乱国产精品人妖| 91在线看国产| 六月丁香婷婷色狠狠久久| 亚洲少妇30p| 国产女主播一区| 欧美日韩亚洲综合一区二区三区| 亚洲永久免费视频| 欧美日韩精品欧美日韩精品| 日韩中文字幕亚洲一区二区va在线| 欧美老肥妇做.爰bbww| 日韩av一级片| 精品国产伦一区二区三区观看体验 | 99国产一区二区三精品乱码| 亚洲精品久久久蜜桃| 欧美日韩国产精品自在自线| 免费在线视频一区| 国产亚洲制服色| 91浏览器入口在线观看| 日韩制服丝袜av| 久久久亚洲精品一区二区三区 | 成人高清免费观看| 亚洲综合丝袜美腿| 日韩一区二区麻豆国产| 国产精品一区2区| 亚洲色欲色欲www| 国产精品污网站| 91久久久免费一区二区| 精品久久久久久久久久久久久久久久久 | 一区二区三区四区在线免费观看| 欧美日韩国产精选| 国产一区二区三区黄视频 | 亚洲欧美另类综合偷拍| 777久久久精品| 国产不卡免费视频| 一区二区三区欧美视频| 精品日韩av一区二区| 91麻豆免费观看| 久久精品国产精品亚洲精品| 国产精品嫩草99a| 91精品国产乱| 不卡高清视频专区| 青青草91视频| 最新中文字幕一区二区三区| 91精品国产一区二区三区蜜臀| 成人黄色av网站在线| 日日欢夜夜爽一区| 国产精品毛片久久久久久| 欧美久久久影院| 成人教育av在线| 久久精品国产99久久6| 亚洲欧美另类图片小说| 久久久久久久久久久久久久久99| 欧洲国产伦久久久久久久| 国产成人午夜视频| 日本aⅴ免费视频一区二区三区 | 天天做天天摸天天爽国产一区| 久久精品亚洲精品国产欧美kt∨| 欧美日韩三级在线| 丁香婷婷综合激情五月色| 日本怡春院一区二区| 亚洲免费观看在线视频| 国产亚洲一区二区三区| 91麻豆精品国产91久久久更新时间 | 宅男噜噜噜66一区二区66| 91理论电影在线观看| 国产91丝袜在线观看| 九九视频精品免费| 亚洲成人精品影院| 亚洲精品乱码久久久久久黑人| 久久美女高清视频| 成人成人成人在线视频| 国产一区二区免费看| 视频一区二区三区入口| 一区二区在线免费| 亚洲婷婷综合色高清在线| 国产欧美日韩久久| 欧美一级一区二区| 精品视频一区 二区 三区| 一本到一区二区三区| av资源网一区| 成人免费毛片片v| 国产精品人人做人人爽人人添| 精品美女一区二区三区| 欧美一区二区久久| 91麻豆精品国产91久久久久久 | 天天综合色天天|