Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

winmenu.cpp File Reference

#include <os2win.h>
#include <odin.h>
#include <odinwrap.h>
#include <stdlib.h>
#include <string.h>
#include <win32wbase.h>
#include "oslibmenu.h"
#include "oslibwin.h"
#include "winmenudef.h"
#include <heapstring.h>

Include dependency graph for winmenu.cpp:

Include dependency graph

Go to the source code of this file.

Defines

#define MENU_ITEM_TYPE(flags)   ((flags) & (MF_STRING | MF_BITMAP | MF_OWNERDRAW | MF_SEPARATOR))
#define IS_STRING_ITEM(flags)   (MENU_ITEM_TYPE ((flags)) == MF_STRING)
#define IS_BITMAP_ITEM(flags)   (MENU_ITEM_TYPE ((flags)) == MF_BITMAP)

Functions

BOOL _Optlink ODIN_InsertMenuA (HMENU, UINT, UINT, UINT, LPCSTR)
BOOL _Optlink ODIN_InsertMenuW (HMENU, UINT, UINT, UINT, LPCWSTR)
BOOL _Optlink ODIN_InsertMenuItemA (HMENU, UINT, BOOL, const MENUITEMINFOA *)
BOOL _Optlink ODIN_InsertMenuItemW (HMENU, UINT, BOOL, const MENUITEMINFOW *)
BOOL _Optlink ODIN_AppendMenuA (HMENU, UINT, UINT, LPCSTR)
BOOL _Optlink ODIN_AppendMenuW (HMENU, UINT, UINT, LPCWSTR)
HMENU _Optlink ODIN_CreateMenu (void)
HMENU _Optlink ODIN_CreatePopupMenu (void)
BOOL _Optlink ODIN_DestroyMenu (HMENU)
BOOL _Optlink ODIN_DeleteMenu (HMENU, UINT, UINT)
LPCSTR MENU_ParseResource (LPCSTR res, HMENU hMenu)
LPCSTR MENUEX_ParseResource (LPCSTR res, HMENU hMenu)
HMENU myLoadMenuIndirect (LPCVOID pMenuTemplate)
void SetInternalMenuInfo (HMENU hMenu)
LPPOPUPMENU GetInternalMenuInfo (HMENU hMenu)
void DeleteInternalMenuInfo (HMENU hMenu)
HMENU WINAPI CreateMenu (void)
HMENU WINAPI CreatePopupMenu (void)
HMENU WINAPI LoadMenuA (HINSTANCE hinst, LPCSTR lpszMenu)
HMENU WINAPI LoadMenuW (HINSTANCE hinst, LPCWSTR lpszMenu)
HMENU WINAPI LoadMenuIndirectW (const MENUITEMTEMPLATEHEADER *menuTemplate)
BOOL WINAPI DestroyMenu (HMENU hMenu)
HMENU WINAPI GetMenu (HWND hwnd)
BOOL WINAPI SetMenu (HWND hwnd, HMENU hMenu)
DWORD WINAPI GetMenuCheckMarkDimensions (void)
int WINAPI GetMenuItemCount (HMENU hMenu)
UINT WINAPI GetMenuItemID (HMENU hMenu, int nPos)
UINT WINAPI GetMenuState (HMENU hMenu, UINT arg2, UINT arg3)
int WINAPI GetMenuStringA (HMENU hMenu, UINT idItem, LPSTR lpsz, int cchMax, UINT fuFlags)
int WINAPI GetMenuStringW (HMENU hMenu, UINT idItem, LPWSTR lpsz, int cchMax, UINT fuFlags)
BOOL WINAPI SetMenuItemBitmaps (HMENU hMenu, UINT arg2, UINT arg3, HBITMAP arg4, HBITMAP arg5)
HMENU WINAPI GetSubMenu (HWND hMenu, int arg2)
HMENU WINAPI GetSystemMenu (HWND hSystemWindow, BOOL bRevert)
BOOL WINAPI IsMenu (HMENU hMenu)
BOOL WINAPI TrackPopupMenu (HMENU hMenu, UINT arg2, int arg3, int arg4, int arg5, HWND arg6, const RECT *arg7)
BOOL WINAPI TrackPopupMenuEx (HMENU hMenu, UINT flags, int X, int Y, HWND hwnd, LPTPMPARAMS lpPM)
BOOL WINAPI AppendMenuA (HMENU hMenu, UINT uFlags, UINT id, LPCSTR lpNewItem)
BOOL WINAPI AppendMenuW (HMENU hMenu, UINT uFlags, UINT id, LPCWSTR lpNewItem)
DWORD WINAPI CheckMenuItem (HMENU hMenu, UINT arg2, UINT arg3)
BOOL WINAPI EnableMenuItem (HMENU hMenu, UINT uIDEnableItem, UINT uEnable)
BOOL WINAPI ModifyMenuA (HMENU hMenu, UINT uItem, UINT fuFlags, UINT idNewItem, LPCSTR lpszNewItem)
BOOL WINAPI ModifyMenuW (HMENU hMenu, UINT arg2, UINT arg3, UINT arg4, LPCWSTR arg5)
BOOL WINAPI RemoveMenu (HMENU hMenu, UINT arg2, UINT arg3)
BOOL WINAPI DeleteMenu (HMENU hMenu, UINT arg2, UINT arg3)
BOOL WINAPI HiliteMenuItem (HWND hMenu, HMENU arg2, UINT arg3, UINT arg4)
BOOL WINAPI InsertMenuA (HMENU hMenu, UINT pos, UINT flags, UINT id, LPCSTR str)
BOOL WINAPI InsertMenuW (HMENU hMenu, UINT arg2, UINT arg3, UINT arg4, LPCWSTR arg5)
BOOL WINAPI SetMenuContextHelpId (HMENU hMenu, DWORD dwContextHelpId)
DWORD WINAPI GetMenuContextHelpId (HMENU hMenu)
BOOL WINAPI CheckMenuRadioItem (HMENU hMenu, UINT idFirst, UINT idLast, UINT idCheck, UINT uFlags)
BOOL WINAPI ChangeMenuA (HMENU hMenu, UINT pos, LPCSTR data, UINT id, UINT flags)
BOOL WINAPI ChangeMenuW (HMENU hMenu, UINT pos, LPCWSTR data, UINT id, UINT flags)
BOOL WINAPI SetMenuItemInfoA (HMENU hMenu, UINT par1, BOOL par2, const MENUITEMINFOA *lpmii)
BOOL WINAPI SetMenuItemInfoW (HMENU hMenu, UINT uItem, BOOL fByPosition, const MENUITEMINFOW *lpmmi)
UINT WINAPI GetMenuDefaultItem (HMENU hMenu, UINT fByPos, UINT gmdiFlags)
BOOL WINAPI SetMenuDefaultItem (HMENU hMenu, UINT uItem, UINT fByPos)
BOOL GetMenuItemInfoAW (HMENU hMenu, UINT uItem, BOOL byPos, MENUITEMINFOA *lpmii, BOOL unicode)
BOOL WINAPI GetMenuItemInfoA (HMENU hMenu, UINT uItem, BOOL byPos, MENUITEMINFOA *lpMenuItemInfo)
BOOL WINAPI GetMenuItemInfoW (HMENU hMenu, UINT uItem, BOOL byPos, MENUITEMINFOW *lpMenuItemInfo)
BOOL GetMenuItemRect (HWND hwnd, HMENU hMenu, UINT uItem, LPRECT lprcItem)
BOOL WINAPI InsertMenuItemA (HMENU hMenu, UINT uItem, BOOL fByPosition, const MENUITEMINFOA *lpmii)
BOOL WINAPI InsertMenuItemW (HMENU hMenu, UINT uItem, BOOL fByPosition, const MENUITEMINFOW *lpmii)
UINT WINAPI MenuItemFromPoint (HWND hWnd, HMENU hMenu, POINT ptScreen)
BOOL WINAPI GetMenuInfo (HMENU hMenu, LPMENUINFO lpmi)
BOOL WINAPI SetMenuInfo (HMENU hMenu, LPCMENUINFO lpmi)


Define Documentation

#define MENU_ITEM_TYPE flags       ((flags) & (MF_STRING | MF_BITMAP | MF_OWNERDRAW | MF_SEPARATOR))
 

Definition at line 47 of file winmenu.cpp.

#define IS_STRING_ITEM flags       (MENU_ITEM_TYPE ((flags)) == MF_STRING)
 

Definition at line 50 of file winmenu.cpp.

#define IS_BITMAP_ITEM flags       (MENU_ITEM_TYPE ((flags)) == MF_BITMAP)
 

Definition at line 51 of file winmenu.cpp.


Function Documentation

BOOL _Optlink ODIN_InsertMenuA HMENU   ,
UINT   ,
UINT   ,
UINT   ,
LPCSTR   
 

Referenced by AppendMenuA(), InsertMenuItemA(), and InsertMenuW().

BOOL _Optlink ODIN_InsertMenuW HMENU   ,
UINT   ,
UINT   ,
UINT   ,
LPCWSTR   
 

Referenced by AppendMenuW(), and InsertMenuItemW().

BOOL _Optlink ODIN_InsertMenuItemA HMENU   ,
UINT   ,
BOOL   ,
const MENUITEMINFOA *   
 

BOOL _Optlink ODIN_InsertMenuItemW HMENU   ,
UINT   ,
BOOL   ,
const MENUITEMINFOW *   
 

Referenced by MENUEX_ParseResource().

BOOL _Optlink ODIN_AppendMenuA HMENU   ,
UINT   ,
UINT   ,
LPCSTR   
 

Referenced by ChangeMenuA().

BOOL _Optlink ODIN_AppendMenuW HMENU   ,
UINT   ,
UINT   ,
LPCWSTR   
 

Referenced by ChangeMenuW(), and MENU_ParseResource().

HMENU _Optlink ODIN_CreateMenu void   
 

Referenced by myLoadMenuIndirect().

HMENU _Optlink ODIN_CreatePopupMenu void   
 

Referenced by MENUEX_ParseResource(), and MENU_ParseResource().

BOOL _Optlink ODIN_DestroyMenu HMENU   
 

Referenced by myLoadMenuIndirect().

BOOL _Optlink ODIN_DeleteMenu HMENU   ,
UINT   ,
UINT   
 

Referenced by ChangeMenuA(), and ChangeMenuW().

LPCSTR MENU_ParseResource LPCSTR    res,
HMENU    hMenu
[static]
 

Definition at line 59 of file winmenu.cpp.

Referenced by LoadMenuIndirectA(), MENU_ParseResource(), and myLoadMenuIndirect().

LPCSTR MENUEX_ParseResource LPCSTR    res,
HMENU    hMenu
[static]
 

Definition at line 101 of file winmenu.cpp.

Referenced by LoadMenuIndirectA(), MENUEX_ParseResource(), and myLoadMenuIndirect().

HMENU myLoadMenuIndirect LPCVOID    pMenuTemplate
 

Definition at line 157 of file winmenu.cpp.

Referenced by LoadMenuA(), LoadMenuIndirectW(), and LoadMenuW().

void SetInternalMenuInfo HMENU    hMenu
 

Definition at line 200 of file winmenu.cpp.

Referenced by CreateMenu(), CreatePopupMenu(), LoadMenuA(), LoadMenuIndirectW(), and LoadMenuW().

LPPOPUPMENU GetInternalMenuInfo HMENU    hMenu
 

Definition at line 210 of file winmenu.cpp.

Referenced by GetMenuContextHelpId(), GetMenuInfo(), SetMenuContextHelpId(), and SetMenuInfo().

void DeleteInternalMenuInfo HMENU    hMenu
 

Definition at line 216 of file winmenu.cpp.

Referenced by DestroyMenu().

HMENU WINAPI CreateMenu void   
 

Definition at line 228 of file winmenu.cpp.

HMENU WINAPI CreatePopupMenu void   
 

Definition at line 244 of file winmenu.cpp.

HMENU WINAPI LoadMenuA HINSTANCE    hinst,
LPCSTR    lpszMenu
 

Definition at line 262 of file winmenu.cpp.

Referenced by EDIT_WM_ContextMenu(), MDI_AugmentFrameMenu(), and MENU_CopySysPopup().

HMENU WINAPI LoadMenuW HINSTANCE    hinst,
LPCWSTR    lpszMenu
 

Definition at line 285 of file winmenu.cpp.

Referenced by GET_SHORT().

HMENU WINAPI LoadMenuIndirectW const MENUITEMTEMPLATEHEADER *    menuTemplate
 

Definition at line 307 of file winmenu.cpp.

Referenced by LoadMenuW().

BOOL WINAPI DestroyMenu HMENU    hMenu
 

Definition at line 322 of file winmenu.cpp.

Referenced by DeleteMenu(), DestroyMenu(), EDIT_WM_ContextMenu(), GET_SHORT(), GetSystemMenu(), LoadMenuIndirectA(), MDI_AugmentFrameMenu(), MENUEX_ParseResource(), MENU_GetSysMenu(), MENU_SetItemData(), SetSystemMenu(), and myLoadMenuIndirect().

HMENU WINAPI GetMenu HWND    hwnd
 

Definition at line 335 of file winmenu.cpp.

Referenced by DefFrameProcW(), DefMDIChildProcW(), DrawMenuBar(), KBD_translate_accelerator(), MDIRefreshMenu(), MDISetMenu(), MDI_AugmentFrameMenu(), MDI_RestoreFrameMenu(), MENU_DoNextMenu(), MENU_DrawMenuBar(), MENU_GetMenuBarHeight(), MENU_PtMenu(), MENU_TrackKbdMenuBar(), MENU_TrackMouseMenuBar(), and MENU_TrackMouseMenuBar_MouseMove().

BOOL WINAPI SetMenu HWND    hwnd,
HMENU    hMenu
 

Definition at line 353 of file winmenu.cpp.

Referenced by MDISetMenu().

DWORD WINAPI GetMenuCheckMarkDimensions void   
 

Definition at line 370 of file winmenu.cpp.

int WINAPI GetMenuItemCount HMENU    hMenu
 

Definition at line 377 of file winmenu.cpp.

Referenced by MDIClientWndProc_common(), MDISetMenu(), and MDI_RestoreFrameMenu().

UINT WINAPI GetMenuItemID HMENU    hMenu,
int    nPos
 

Definition at line 390 of file winmenu.cpp.

Referenced by GetMenuItemInfoAW(), MDISetMenu(), and MDI_RestoreFrameMenu().

UINT WINAPI GetMenuState HMENU    hMenu,
UINT    arg2,
UINT    arg3
 

Definition at line 404 of file winmenu.cpp.

Referenced by KBD_translate_accelerator(), MDI_MenuModifyItem(), and Win32MDIChildWindow::menuModifyItem().

int WINAPI GetMenuStringA HMENU    hMenu,
UINT    idItem,
LPSTR    lpsz,
int    cchMax,
UINT    fuFlags
 

Definition at line 421 of file winmenu.cpp.

int WINAPI GetMenuStringW HMENU    hMenu,
UINT    idItem,
LPWSTR    lpsz,
int    cchMax,
UINT    fuFlags
 

Definition at line 447 of file winmenu.cpp.

BOOL WINAPI SetMenuItemBitmaps HMENU    hMenu,
UINT    arg2,
UINT    arg3,
HBITMAP    arg4,
HBITMAP    arg5
 

Definition at line 470 of file winmenu.cpp.

HMENU WINAPI GetSubMenu HWND    hMenu,
int    arg2
 

Definition at line 484 of file winmenu.cpp.

Referenced by DefFrameProcW(), Win32MDIChildWindow::DefMDIChildProcA(), DefMDIChildProcW(), EDIT_WM_ContextMenu(), GetSystemMenu(), KBD_translate_accelerator(), MENU_DoNextMenu(), and MENU_FindItemByKey().

HMENU WINAPI GetSystemMenu HWND    hSystemWindow,
BOOL    bRevert
 

Definition at line 498 of file winmenu.cpp.

BOOL WINAPI IsMenu HMENU    hMenu
 

Definition at line 514 of file winmenu.cpp.

Referenced by MDISetMenu(), MENU_DoNextMenu(), MENU_FindItemByKey(), MENU_TrackKbdMenuBar(), MENU_TrackMouseMenuBar(), MENU_TrackMouseMenuBar_MouseMove(), and SetMenu().

BOOL WINAPI TrackPopupMenu HMENU    hMenu,
UINT    arg2,
int    arg3,
int    arg4,
int    arg5,
HWND    arg6,
const RECT *    arg7
 

Definition at line 528 of file winmenu.cpp.

Referenced by EDIT_WM_ContextMenu(), and TrackPopupMenuEx().

BOOL WINAPI TrackPopupMenuEx HMENU    hMenu,
UINT    flags,
int    X,
int    Y,
HWND    hwnd,
LPTPMPARAMS    lpPM
 

Definition at line 556 of file winmenu.cpp.

BOOL WINAPI AppendMenuA HMENU    hMenu,
UINT    uFlags,
UINT    id,
LPCSTR    lpNewItem
 

Definition at line 588 of file winmenu.cpp.

Referenced by ChangeMenuA(), MDISetMenu(), MDI_AugmentFrameMenu(), MENU_ParseResource(), and Win32MDIChildWindow::createChild().

BOOL WINAPI AppendMenuW HMENU    hMenu,
UINT    uFlags,
UINT    id,
LPCWSTR    lpNewItem
 

Definition at line 598 of file winmenu.cpp.

Referenced by ChangeMenuW(), MDIClientWndProc_common(), MDICreateChild(), MDI_MenuDeleteItem(), and MENU_ParseResource().

DWORD WINAPI CheckMenuItem HMENU    hMenu,
UINT    arg2,
UINT    arg3
 

Definition at line 607 of file winmenu.cpp.

Referenced by MDI_ChildActivate(), MDI_MenuModifyItem(), and Win32MDIChildWindow::menuModifyItem().

BOOL WINAPI EnableMenuItem HMENU    hMenu,
UINT    uIDEnableItem,
UINT    uEnable
 

Definition at line 620 of file winmenu.cpp.

Referenced by EDIT_WM_ContextMenu(), MDI_AugmentFrameMenu(), and MENU_InitSysMenuPopup().

BOOL WINAPI ModifyMenuA HMENU    hMenu,
UINT    uItem,
UINT    fuFlags,
UINT    idNewItem,
LPCSTR    lpszNewItem
 

Definition at line 639 of file winmenu.cpp.

Referenced by ChangeMenuA(), ModifyMenuW(), Win32MDIChildWindow::menuDeleteItem(), and Win32MDIChildWindow::menuModifyItem().

BOOL WINAPI ModifyMenuW HMENU    hMenu,
UINT    arg2,
UINT    arg3,
UINT    arg4,
LPCWSTR    arg5
 

Definition at line 665 of file winmenu.cpp.

Referenced by ChangeMenuW(), MDICreateChild(), MDI_MenuDeleteItem(), and MDI_MenuModifyItem().

BOOL WINAPI RemoveMenu HMENU    hMenu,
UINT    arg2,
UINT    arg3
 

Definition at line 692 of file winmenu.cpp.

Referenced by ChangeMenuA(), ChangeMenuW(), DeleteMenu(), InsertMenuA(), MDI_RestoreFrameMenu(), and MENU_CopySysPopup().

BOOL WINAPI DeleteMenu HMENU    hMenu,
UINT    arg2,
UINT    arg3
 

Definition at line 707 of file winmenu.cpp.

Referenced by ChangeMenuA(), ChangeMenuW(), MDIClientWndProc_common(), MDICreateChild(), MDISetMenu(), MDI_MenuDeleteItem(), MDI_RestoreFrameMenu(), Win32MDIChildWindow::createChild(), and Win32MDIChildWindow::menuDeleteItem().

BOOL WINAPI HiliteMenuItem HWND    hMenu,
HMENU    arg2,
UINT    arg3,
UINT    arg4
 

Definition at line 723 of file winmenu.cpp.

BOOL WINAPI InsertMenuA HMENU    hMenu,
UINT    pos,
UINT    flags,
UINT    id,
LPCSTR    str
 

Definition at line 741 of file winmenu.cpp.

Referenced by AppendMenuA(), ChangeMenuA(), InsertMenuW(), MDI_AugmentFrameMenu(), and MENU_GetSysMenu().

BOOL WINAPI InsertMenuW HMENU    hMenu,
UINT    arg2,
UINT    arg3,
UINT    arg4,
LPCWSTR    arg5
 

Definition at line 770 of file winmenu.cpp.

Referenced by AppendMenuW(), and ChangeMenuW().

BOOL WINAPI SetMenuContextHelpId HMENU    hMenu,
DWORD    dwContextHelpId
 

Definition at line 791 of file winmenu.cpp.

DWORD WINAPI GetMenuContextHelpId HMENU    hMenu
 

Definition at line 808 of file winmenu.cpp.

BOOL WINAPI CheckMenuRadioItem HMENU    hMenu,
UINT    idFirst,
UINT    idLast,
UINT    idCheck,
UINT    uFlags
 

Definition at line 828 of file winmenu.cpp.

BOOL WINAPI ChangeMenuA HMENU    hMenu,
UINT    pos,
LPCSTR    data,
UINT    id,
UINT    flags
 

Definition at line 840 of file winmenu.cpp.

BOOL WINAPI ChangeMenuW HMENU    hMenu,
UINT    pos,
LPCWSTR    data,
UINT    id,
UINT    flags
 

Definition at line 862 of file winmenu.cpp.

BOOL WINAPI SetMenuItemInfoA HMENU    hMenu,
UINT    par1,
BOOL    par2,
const MENUITEMINFOA *    lpmii
 

Definition at line 883 of file winmenu.cpp.

Referenced by SetMenuItemInfoW().

BOOL WINAPI SetMenuItemInfoW HMENU    hMenu,
UINT    uItem,
BOOL    fByPosition,
const MENUITEMINFOW *    lpmmi
 

Definition at line 911 of file winmenu.cpp.

UINT WINAPI GetMenuDefaultItem HMENU    hMenu,
UINT    fByPos,
UINT    gmdiFlags
 

Definition at line 942 of file winmenu.cpp.

Referenced by GetMenuDefaultItem().

BOOL WINAPI SetMenuDefaultItem HMENU    hMenu,
UINT    uItem,
UINT    fByPos
 

Definition at line 956 of file winmenu.cpp.

Referenced by MDI_AugmentFrameMenu(), and MENU_CopySysPopup().

BOOL GetMenuItemInfoAW HMENU    hMenu,
UINT    uItem,
BOOL    byPos,
MENUITEMINFOA *    lpmii,
BOOL    unicode
 

Definition at line 963 of file winmenu.cpp.

Referenced by GetMenuItemInfoA(), and GetMenuItemInfoW().

BOOL WINAPI GetMenuItemInfoA HMENU    hMenu,
UINT    uItem,
BOOL    byPos,
MENUITEMINFOA *    lpMenuItemInfo
 

Definition at line 1059 of file winmenu.cpp.

BOOL WINAPI GetMenuItemInfoW HMENU    hMenu,
UINT    uItem,
BOOL    byPos,
MENUITEMINFOW *    lpMenuItemInfo
 

Definition at line 1081 of file winmenu.cpp.

Referenced by MDISetMenu(), and MDI_RestoreFrameMenu().

BOOL GetMenuItemRect HWND    hwnd,
HMENU    hMenu,
UINT    uItem,
LPRECT    lprcItem
 

Definition at line 1100 of file winmenu.cpp.

BOOL WINAPI InsertMenuItemA HMENU    hMenu,
UINT    uItem,
BOOL    fByPosition,
const MENUITEMINFOA *    lpmii
 

Definition at line 1127 of file winmenu.cpp.

BOOL WINAPI InsertMenuItemW HMENU    hMenu,
UINT    uItem,
BOOL    fByPosition,
const MENUITEMINFOW *    lpmii
 

Definition at line 1176 of file winmenu.cpp.

Referenced by MDISetMenu(), and MENUEX_ParseResource().

UINT WINAPI MenuItemFromPoint HWND    hWnd,
HMENU    hMenu,
POINT    ptScreen
 

Definition at line 1206 of file winmenu.cpp.

BOOL WINAPI GetMenuInfo HMENU    hMenu,
LPMENUINFO    lpmi
 

Definition at line 1230 of file winmenu.cpp.

BOOL WINAPI SetMenuInfo HMENU    hMenu,
LPCMENUINFO    lpmi
 

Definition at line 1281 of file winmenu.cpp.


Generated on Wed Jan 23 23:21:51 2002 for ODIN-user32 by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001