| 1 | /* $Id: winmenudef.h,v 1.3 2000-01-18 20:08:18 sandervl Exp $ */
 | 
|---|
| 2 | 
 | 
|---|
| 3 | /*
 | 
|---|
| 4 |  * Win32 menu API functions for OS/2
 | 
|---|
| 5 |  *
 | 
|---|
| 6 |  * Copyright 1998 Sander van Leeuwen
 | 
|---|
| 7 |  * Copyright 1998 Patrick Haller
 | 
|---|
| 8 |  *
 | 
|---|
| 9 |  * Parts ported from Wine: 
 | 
|---|
| 10 |  * Copyright 1993 Martin Ayotte
 | 
|---|
| 11 |  * Copyright 1994 Alexandre Julliard
 | 
|---|
| 12 |  * Copyright 1997 Morten Welinder
 | 
|---|
| 13 |  *
 | 
|---|
| 14 |  *
 | 
|---|
| 15 |  * Project Odin Software License can be found in LICENSE.TXT
 | 
|---|
| 16 |  *
 | 
|---|
| 17 |  */
 | 
|---|
| 18 | 
 | 
|---|
| 19 | #ifndef __WINMENUDEF_H__
 | 
|---|
| 20 | #define __WINMENUDEF_H__
 | 
|---|
| 21 | 
 | 
|---|
| 22 | /* Menu item structure */
 | 
|---|
| 23 | typedef struct {
 | 
|---|
| 24 |     /* ----------- MENUITEMINFO Stuff ----------- */
 | 
|---|
| 25 |     UINT fType;                 /* Item type. */
 | 
|---|
| 26 |     UINT fState;                /* Item state.  */
 | 
|---|
| 27 |     UINT wID;                   /* Item id.  */
 | 
|---|
| 28 |     HMENU hSubMenu;             /* Pop-up menu.  */
 | 
|---|
| 29 |     HBITMAP hCheckBit;          /* Bitmap when checked.  */
 | 
|---|
| 30 |     HBITMAP hUnCheckBit;        /* Bitmap when unchecked.  */
 | 
|---|
| 31 |     LPSTR text;                 /* Item text or bitmap handle.  */
 | 
|---|
| 32 |     DWORD dwItemData;           /* Application defined.  */
 | 
|---|
| 33 |     DWORD dwTypeData;           /* depends on fMask */
 | 
|---|
| 34 |     HBITMAP hbmpItem;           /* bitmap in win98 style menus */
 | 
|---|
| 35 |     /* ----------- Wine stuff ----------- */
 | 
|---|
| 36 |     RECT      rect;             /* Item area (relative to menu window) */
 | 
|---|
| 37 |     UINT      xTab;             /* X position of text after Tab */
 | 
|---|
| 38 | } MENUITEM;
 | 
|---|
| 39 | 
 | 
|---|
| 40 | /* Popup menu structure */
 | 
|---|
| 41 | typedef struct {
 | 
|---|
| 42 |     WORD        wFlags;       /* Menu flags (MF_POPUP, MF_SYSMENU) */
 | 
|---|
| 43 |     WORD        wMagic;       /* Magic number */
 | 
|---|
| 44 |     HQUEUE16    hTaskQ;       /* Task queue for this menu */
 | 
|---|
| 45 |     WORD        Width;        /* Width of the whole menu */
 | 
|---|
| 46 |     WORD        Height;       /* Height of the whole menu */
 | 
|---|
| 47 |     WORD        nItems;       /* Number of items in the menu */
 | 
|---|
| 48 |     HWND        hWnd;         /* Window containing the menu */
 | 
|---|
| 49 |     MENUITEM    *items;       /* Array of menu items */
 | 
|---|
| 50 |     UINT        FocusedItem;  /* Currently focused item */
 | 
|---|
| 51 |     HWND        hwndOwner;    /* window receiving the messages for ownerdraw */
 | 
|---|
| 52 |     /* ------------ MENUINFO members ------ */
 | 
|---|
| 53 |     DWORD       dwStyle;        /* Extended mennu style */
 | 
|---|
| 54 |     UINT        cyMax;          /* max hight of the whole menu, 0 is screen hight */
 | 
|---|
| 55 |     HBRUSH      hbrBack;        /* brush for menu background */
 | 
|---|
| 56 |     DWORD       dwContextHelpID;
 | 
|---|
| 57 |     DWORD       dwMenuData;     /* application defined value */
 | 
|---|
| 58 |     HMENU       hSysMenuOwner;  /* Handle to the dummy sys menu holder */
 | 
|---|
| 59 | } POPUPMENU, *LPPOPUPMENU;
 | 
|---|
| 60 | 
 | 
|---|
| 61 | #endif //__WINMENUDEF_H__
 | 
|---|