#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:
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) |
|
Definition at line 47 of file winmenu.cpp. |
|
Definition at line 50 of file winmenu.cpp. |
|
Definition at line 51 of file winmenu.cpp. |
|
Referenced by AppendMenuA(), InsertMenuItemA(), and InsertMenuW().
|
|
Referenced by AppendMenuW(), and InsertMenuItemW().
|
|
|
|
Referenced by MENUEX_ParseResource().
|
|
Referenced by ChangeMenuA().
|
|
Referenced by ChangeMenuW(), and MENU_ParseResource().
|
|
Referenced by myLoadMenuIndirect().
|
|
Referenced by MENUEX_ParseResource(), and MENU_ParseResource().
|
|
Referenced by myLoadMenuIndirect().
|
|
Referenced by ChangeMenuA(), and ChangeMenuW().
|
|
Definition at line 59 of file winmenu.cpp. Referenced by LoadMenuIndirectA(), MENU_ParseResource(), and myLoadMenuIndirect().
|
|
Definition at line 101 of file winmenu.cpp. Referenced by LoadMenuIndirectA(), MENUEX_ParseResource(), and myLoadMenuIndirect().
|
|
Definition at line 157 of file winmenu.cpp. Referenced by LoadMenuA(), LoadMenuIndirectW(), and LoadMenuW().
|
|
Definition at line 200 of file winmenu.cpp. Referenced by CreateMenu(), CreatePopupMenu(), LoadMenuA(), LoadMenuIndirectW(), and LoadMenuW().
|
|
Definition at line 210 of file winmenu.cpp. Referenced by GetMenuContextHelpId(), GetMenuInfo(), SetMenuContextHelpId(), and SetMenuInfo().
|
|
Definition at line 216 of file winmenu.cpp. Referenced by DestroyMenu().
|
|
Definition at line 228 of file winmenu.cpp. |
|
Definition at line 244 of file winmenu.cpp. |
|
Definition at line 262 of file winmenu.cpp. Referenced by EDIT_WM_ContextMenu(), MDI_AugmentFrameMenu(), and MENU_CopySysPopup().
|
|
Definition at line 285 of file winmenu.cpp. Referenced by GET_SHORT().
|
|
Definition at line 307 of file winmenu.cpp. Referenced by LoadMenuW().
|
|
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().
|
|
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().
|
|
Definition at line 353 of file winmenu.cpp. Referenced by MDISetMenu().
|
|
Definition at line 370 of file winmenu.cpp. |
|
Definition at line 377 of file winmenu.cpp. Referenced by MDIClientWndProc_common(), MDISetMenu(), and MDI_RestoreFrameMenu().
|
|
Definition at line 390 of file winmenu.cpp. Referenced by GetMenuItemInfoAW(), MDISetMenu(), and MDI_RestoreFrameMenu().
|
|
Definition at line 404 of file winmenu.cpp. Referenced by KBD_translate_accelerator(), MDI_MenuModifyItem(), and Win32MDIChildWindow::menuModifyItem().
|
|
Definition at line 421 of file winmenu.cpp. |
|
Definition at line 447 of file winmenu.cpp. |
|
Definition at line 470 of file winmenu.cpp. |
|
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().
|
|
Definition at line 498 of file winmenu.cpp. |
|
Definition at line 514 of file winmenu.cpp. Referenced by MDISetMenu(), MENU_DoNextMenu(), MENU_FindItemByKey(), MENU_TrackKbdMenuBar(), MENU_TrackMouseMenuBar(), MENU_TrackMouseMenuBar_MouseMove(), and SetMenu().
|
|
Definition at line 528 of file winmenu.cpp. Referenced by EDIT_WM_ContextMenu(), and TrackPopupMenuEx().
|
|
Definition at line 556 of file winmenu.cpp. |
|
Definition at line 588 of file winmenu.cpp. Referenced by ChangeMenuA(), MDISetMenu(), MDI_AugmentFrameMenu(), MENU_ParseResource(), and Win32MDIChildWindow::createChild().
|
|
Definition at line 598 of file winmenu.cpp. Referenced by ChangeMenuW(), MDIClientWndProc_common(), MDICreateChild(), MDI_MenuDeleteItem(), and MENU_ParseResource().
|
|
Definition at line 607 of file winmenu.cpp. Referenced by MDI_ChildActivate(), MDI_MenuModifyItem(), and Win32MDIChildWindow::menuModifyItem().
|
|
Definition at line 620 of file winmenu.cpp. Referenced by EDIT_WM_ContextMenu(), MDI_AugmentFrameMenu(), and MENU_InitSysMenuPopup().
|
|
Definition at line 639 of file winmenu.cpp. Referenced by ChangeMenuA(), ModifyMenuW(), Win32MDIChildWindow::menuDeleteItem(), and Win32MDIChildWindow::menuModifyItem().
|
|
Definition at line 665 of file winmenu.cpp. Referenced by ChangeMenuW(), MDICreateChild(), MDI_MenuDeleteItem(), and MDI_MenuModifyItem().
|
|
Definition at line 692 of file winmenu.cpp. Referenced by ChangeMenuA(), ChangeMenuW(), DeleteMenu(), InsertMenuA(), MDI_RestoreFrameMenu(), and MENU_CopySysPopup().
|
|
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().
|
|
Definition at line 723 of file winmenu.cpp. |
|
Definition at line 741 of file winmenu.cpp. Referenced by AppendMenuA(), ChangeMenuA(), InsertMenuW(), MDI_AugmentFrameMenu(), and MENU_GetSysMenu().
|
|
Definition at line 770 of file winmenu.cpp. Referenced by AppendMenuW(), and ChangeMenuW().
|
|
Definition at line 791 of file winmenu.cpp. |
|
Definition at line 808 of file winmenu.cpp. |
|
Definition at line 828 of file winmenu.cpp. |
|
Definition at line 840 of file winmenu.cpp. |
|
Definition at line 862 of file winmenu.cpp. |
|
Definition at line 883 of file winmenu.cpp. Referenced by SetMenuItemInfoW().
|
|
Definition at line 911 of file winmenu.cpp. |
|
Definition at line 942 of file winmenu.cpp. Referenced by GetMenuDefaultItem().
|
|
Definition at line 956 of file winmenu.cpp. Referenced by MDI_AugmentFrameMenu(), and MENU_CopySysPopup().
|
|
Definition at line 963 of file winmenu.cpp. Referenced by GetMenuItemInfoA(), and GetMenuItemInfoW().
|
|
Definition at line 1059 of file winmenu.cpp. |
|
Definition at line 1081 of file winmenu.cpp. Referenced by MDISetMenu(), and MDI_RestoreFrameMenu().
|
|
Definition at line 1100 of file winmenu.cpp. |
|
Definition at line 1127 of file winmenu.cpp. |
|
Definition at line 1176 of file winmenu.cpp. Referenced by MDISetMenu(), and MENUEX_ParseResource().
|
|
Definition at line 1206 of file winmenu.cpp. |
|
Definition at line 1230 of file winmenu.cpp. |
|
Definition at line 1281 of file winmenu.cpp. |