source: trunk/src/win32k/pe2lx/menu.h@ 1010

Last change on this file since 1010 was 847, checked in by bird, 26 years ago

Initial checkin of Win32k. (not tested & pe2lx not up-to-date!)

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