source: trunk/src/pe2lx/menu.h@ 46

Last change on this file since 46 was 46, checked in by sandervl, 26 years ago

* empty log message *

File size: 1.3 KB
Line 
1/*
2 * PE2LX menus
3 *
4 * Copyright 1998 Sander van Leeuwen (sandervl@xs4all.nl)
5 *
6 *
7 * Project Odin Software License can be found in LICENSE.TXT
8 *
9 */
10#ifndef __MENU_H__
11#define __MENU_H__
12
13#define GRAYED 0x0001 // 'GRAYED' keyword
14#define INACTIVE 0x0002 // 'INACTIVE' keyword
15#define BITMAP 0x0004 // 'BITMAP' keyword
16#define OWNERDRAW 0x0100 // 'OWNERDRAW' keyword
17#define CHECKED 0x0008 // 'CHECKED' keyword
18#define POPUP 0x0010 // Used internally
19#define MENUBARBREAK 0x0020 // 'MENUBARBREAK' keyword (== separator)
20#define MENUBREAK 0x0040 // 'MENUBREAK' keyword (witregel + nieuw item)
21#define ENDMENU 0x0080 // Used internally
22
23#pragma pack(1) /*PLF Sat 97-06-21 22:17:31*/
24
25typedef struct {
26 WORD wVersion; // Currently zero
27 WORD cbHeaderSize; // Also zero
28} MenuHeader;
29
30//Popup menu items (signalled by fItemFlags & POPUP):
31
32typedef struct {
33 WORD fItemFlags;
34 WCHAR szItemText[1]; /*PLF Sat 97-06-21 22:17:41*/
35} PopupMenuItem;
36
37//Normal menu items (signalled by !(fItemFlags & POPUP)):
38
39typedef struct {
40 WORD fItemFlags;
41 WORD wMenuID;
42 WCHAR szItemText[1]; /*PLF Sat 97-06-21 22:17:44*/
43} NormalMenuItem;
44
45#pragma pack() /*PLF Sat 97-06-21 22:17:31*/
46
47void ShowMenu(int id, MenuHeader *menu, int size);
48
49#endif
Note: See TracBrowser for help on using the repository browser.