Last change
on this file since 10366 was 581, checked in by sandervl, 26 years ago |
PE loader resource convertion changes
|
File size:
1.4 KB
|
Rev | Line | |
---|
[581] | 1 | /* $Id: winmenu.h,v 1.1 1999-08-19 14:18:24 sandervl 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 __WINMENU_H__
|
---|
| 13 | #define __WINMENU_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 |
|
---|
| 27 | typedef struct {
|
---|
| 28 | WORD wVersion; // Currently zero
|
---|
| 29 | WORD cbHeaderSize; // Also zero
|
---|
| 30 | } MenuHeader;
|
---|
| 31 |
|
---|
| 32 | //Popup menu items (signalled by fItemFlags & POPUP):
|
---|
| 33 |
|
---|
| 34 | typedef struct {
|
---|
| 35 | WORD fItemFlags;
|
---|
| 36 | WCHAR szItemText[1]; /*PLF Sat 97-06-21 22:17:41*/
|
---|
| 37 | } PopupMenuItem;
|
---|
| 38 |
|
---|
| 39 | //Normal menu items (signalled by !(fItemFlags & POPUP)):
|
---|
| 40 |
|
---|
| 41 | typedef struct {
|
---|
| 42 | WORD fItemFlags;
|
---|
| 43 | WORD wMenuID;
|
---|
| 44 | WCHAR szItemText[1]; /*PLF Sat 97-06-21 22:17:44*/
|
---|
| 45 | } NormalMenuItem;
|
---|
| 46 |
|
---|
| 47 | #pragma pack() /*PLF Sat 97-06-21 22:17:31*/
|
---|
| 48 |
|
---|
| 49 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.