LMMS
Loading...
Searching...
No Matches
swell-menu-generic.cpp File Reference
#include "swell.h"
#include "swell-menugen.h"
#include "swell-internal.h"
#include "../ptrlist.h"
#include "../wdlcstring.h"

Functions

static bool MenuIsStringType (const MENUITEMINFO *inf)
static MENUITEMINFOGetMenuItemByID (HMENU menu, int id, bool searchChildren=true)
bool SetMenuItemText (HMENU hMenu, int idx, int flag, const char *text)
bool EnableMenuItem (HMENU hMenu, int idx, int en)
bool CheckMenuItem (HMENU hMenu, int idx, int chk)
HMENU SWELL_GetCurrentMenu ()
void SWELL_SetCurrentMenu (HMENU hmenu)
HMENU GetSubMenu (HMENU hMenu, int pos)
int GetMenuItemCount (HMENU hMenu)
int GetMenuItemID (HMENU hMenu, int pos)
bool SetMenuItemModifier (HMENU hMenu, int idx, int flag, int code, unsigned int mask)
HMENU CreatePopupMenu ()
HMENU CreatePopupMenuEx (const char *title)
void DestroyMenu (HMENU hMenu)
int AddMenuItem (HMENU hMenu, int pos, const char *name, int tagid)
bool DeleteMenu (HMENU hMenu, int idx, int flag)
BOOL SetMenuItemInfo (HMENU hMenu, int pos, BOOL byPos, MENUITEMINFO *mi)
BOOL GetMenuItemInfo (HMENU hMenu, int pos, BOOL byPos, MENUITEMINFO *mi)
void SWELL_InsertMenu (HMENU menu, int pos, unsigned int flag, UINT_PTR idx, const char *str)
void InsertMenuItem (HMENU hMenu, int pos, BOOL byPos, MENUITEMINFO *mi)
void SWELL_SetMenuDestination (HMENU menu, HWND hwnd)
int swell_delegate_menu_message (HWND src, LPARAM lParam, int msg, bool screencoords)
bool swell_isOSwindowmenu (SWELL_OSWINDOW osw)
int menuBarNavigate (int dir)
HWND GetFocusIncludeMenus (void)
static LRESULT WINAPI submenuWndProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
bool DestroyPopupMenus ()
int TrackPopupMenu (HMENU hMenu, int flags, int xpos, int ypos, int resvd, HWND hwnd, const RECT *r)
void SWELL_Menu_AddMenuItem (HMENU hMenu, const char *name, int idx, unsigned int flags)
static SWELL_MenuResourceIndexresById (SWELL_MenuResourceIndex *head, const char *resid)
HMENU SWELL_LoadMenu (SWELL_MenuResourceIndex *head, const char *resid)
HMENU SWELL_DuplicateMenu (HMENU menu)
BOOL SetMenu (HWND hwnd, HMENU menu)
HMENU GetMenu (HWND hwnd)
void DrawMenuBar (HWND hwnd)
int SWELL_GenerateMenuFromList (HMENU hMenu, const void *_list, int listsz)

Variables

RECT g_trackpopup_yroot
static POINT m_trackingPt
static POINT m_trackingPt2
static int m_trackingMouseFlag
static int m_trackingFlags
static int m_trackingRet
static HWND m_trackingPar
static WDL_PtrList< HWND__m_trackingMenus
static DWORD swell_menu_ignore_mousemove_from
SWELL_OSWINDOW swell_ignore_focus_oswindow
DWORD swell_ignore_focus_oswindow_until
SWELL_MenuResourceIndexSWELL_curmodule_menuresource_head

Function Documentation

◆ AddMenuItem()

int AddMenuItem ( HMENU hMenu,
int pos,
const char * name,
int tagid )

◆ CheckMenuItem()

bool CheckMenuItem ( HMENU hMenu,
int idx,
int chk )

◆ CreatePopupMenu()

HMENU CreatePopupMenu ( )

◆ CreatePopupMenuEx()

HMENU CreatePopupMenuEx ( const char * title)

◆ DeleteMenu()

bool DeleteMenu ( HMENU hMenu,
int idx,
int flag )

◆ DestroyMenu()

void DestroyMenu ( HMENU hMenu)

◆ DestroyPopupMenus()

bool DestroyPopupMenus ( void )

◆ DrawMenuBar()

void DrawMenuBar ( HWND hwnd)

◆ EnableMenuItem()

bool EnableMenuItem ( HMENU hMenu,
int idx,
int en )

◆ GetFocusIncludeMenus()

HWND GetFocusIncludeMenus ( void )

◆ GetMenu()

HMENU GetMenu ( HWND hwnd)

◆ GetMenuItemByID()

MENUITEMINFO * GetMenuItemByID ( HMENU menu,
int id,
bool searchChildren = true )
static

◆ GetMenuItemCount()

int GetMenuItemCount ( HMENU hMenu)

◆ GetMenuItemID()

int GetMenuItemID ( HMENU hMenu,
int pos )

◆ GetMenuItemInfo()

BOOL GetMenuItemInfo ( HMENU hMenu,
int pos,
BOOL byPos,
MENUITEMINFO * mi )

◆ GetSubMenu()

HMENU GetSubMenu ( HMENU hMenu,
int pos )

◆ InsertMenuItem()

void InsertMenuItem ( HMENU hMenu,
int pos,
BOOL byPos,
MENUITEMINFO * mi )

◆ menuBarNavigate()

int menuBarNavigate ( int dir)

◆ MenuIsStringType()

bool MenuIsStringType ( const MENUITEMINFO * inf)
static

◆ resById()

SWELL_MenuResourceIndex * resById ( SWELL_MenuResourceIndex * head,
const char * resid )
static

◆ SetMenu()

BOOL SetMenu ( HWND hwnd,
HMENU menu )

◆ SetMenuItemInfo()

BOOL SetMenuItemInfo ( HMENU hMenu,
int pos,
BOOL byPos,
MENUITEMINFO * mi )

◆ SetMenuItemModifier()

bool SetMenuItemModifier ( HMENU hMenu,
int idx,
int flag,
int code,
unsigned int mask )

◆ SetMenuItemText()

bool SetMenuItemText ( HMENU hMenu,
int idx,
int flag,
const char * text )

◆ submenuWndProc()

LRESULT WINAPI submenuWndProc ( HWND hwnd,
UINT uMsg,
WPARAM wParam,
LPARAM lParam )
static

◆ swell_delegate_menu_message()

int swell_delegate_menu_message ( HWND src,
LPARAM lParam,
int msg,
bool screencoords )

◆ SWELL_DuplicateMenu()

HMENU SWELL_DuplicateMenu ( HMENU menu)

◆ SWELL_GenerateMenuFromList()

int SWELL_GenerateMenuFromList ( HMENU hMenu,
const void * _list,
int listsz )

◆ SWELL_GetCurrentMenu()

HMENU SWELL_GetCurrentMenu ( )

◆ SWELL_InsertMenu()

void SWELL_InsertMenu ( HMENU menu,
int pos,
unsigned int flag,
UINT_PTR idx,
const char * str )

◆ swell_isOSwindowmenu()

bool swell_isOSwindowmenu ( SWELL_OSWINDOW osw)

◆ SWELL_LoadMenu()

HMENU SWELL_LoadMenu ( SWELL_MenuResourceIndex * head,
const char * resid )

◆ SWELL_Menu_AddMenuItem()

void SWELL_Menu_AddMenuItem ( HMENU hMenu,
const char * name,
int idx,
unsigned int flags )

◆ SWELL_SetCurrentMenu()

void SWELL_SetCurrentMenu ( HMENU hmenu)

◆ SWELL_SetMenuDestination()

void SWELL_SetMenuDestination ( HMENU menu,
HWND hwnd )

◆ TrackPopupMenu()

int TrackPopupMenu ( HMENU hMenu,
int flags,
int xpos,
int ypos,
int resvd,
HWND hwnd,
const RECT * r )

Variable Documentation

◆ g_trackpopup_yroot

RECT g_trackpopup_yroot
extern

◆ m_trackingFlags

int m_trackingFlags
static

◆ m_trackingMenus

WDL_PtrList<HWND__> m_trackingMenus
static

◆ m_trackingMouseFlag

int m_trackingMouseFlag
static

◆ m_trackingPar

HWND m_trackingPar
static

◆ m_trackingPt

POINT m_trackingPt
static

◆ m_trackingPt2

POINT m_trackingPt2
static

◆ m_trackingRet

int m_trackingRet
static

◆ SWELL_curmodule_menuresource_head

SWELL_MenuResourceIndex* SWELL_curmodule_menuresource_head

◆ swell_ignore_focus_oswindow

SWELL_OSWINDOW swell_ignore_focus_oswindow

◆ swell_ignore_focus_oswindow_until

DWORD swell_ignore_focus_oswindow_until

◆ swell_menu_ignore_mousemove_from

DWORD swell_menu_ignore_mousemove_from
static