Category : C Source Code
Archive   : PUBWIW_C.ZIP
Filename : MENU.H

 
Output of file : MENU.H contained in archive : PUBWIW_C.ZIP

/*------------------------------*
* Menu Types .. *
*------------------------------*/
#define M_LAST -1
#define M_ITEM 0
#define M_LOTUS 1
#define M_PULLDOWN 2
#define M_POPUP 3
#define M_NULL ((MenuItem *)0)
#define M_COLOR 0xFB
#define MAX_NAME 24



/*--------------------------------------*
* Menu Item Structure. *
* Used by PopUp and PullDown Menus. *
*--------------------------------------*/

struct MItem
{
COUNT type; /* Menu Item Type M_???? */
TEXT title[MAX_NAME]; /* Menu Name or Title */
UWORD keyCode; /* Related Keyboard Code */
BOOL enabled; /* Enabled or Disabled? */
struct MItem *subMenu; /* Pointer to SubMenu */
COUNT (*PFI)(); /* Pointer to Action Routine*/
};

typedef struct MItem MenuItem;



/*------------------------------*
* PullDown Menu Structure *
*------------------------------*/

struct PDMENU
{
TEXT *name;
FLAG hilited;
rect bbox;
COUNT keyCode;
COUNT itemCnt;
struct MItem *items;
};

typedef struct PDMENU PDMenu;



extern COUNT PopUpMenu();
extern COUNT MenuEvent();
extern void InitMenus();



  3 Responses to “Category : C Source Code
Archive   : PUBWIW_C.ZIP
Filename : MENU.H

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/