summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-07-10 22:13:57 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-07-10 22:14:09 +0300
commit874702d3cbda37ef3c20a696de168bc5a3d4cb10 (patch)
treec9a682ae80cf7344c6effc85563246711a946c60 /include
parent87790d948b49e9712ae2cb9806841f55a89febf2 (diff)
Menu_SetVisible: new function to write down a Visibility checkbox for a menu item
Diffstat (limited to 'include')
-rw-r--r--include/m_genmenu.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/m_genmenu.h b/include/m_genmenu.h
index 00d01c1c10..64c599121b 100644
--- a/include/m_genmenu.h
+++ b/include/m_genmenu.h
@@ -171,7 +171,7 @@ EXTERN_C MIR_APP_DLL(BOOL) Menu_ProcessHotKey(int hMenuObject, int key);
EXTERN_C MIR_APP_DLL(int) Menu_RemoveItem(HGENMENU hMenuItem);
/////////////////////////////////////////////////////////////////////////////////////////
-// changes menu item's visibility
+// temporarily changes menu item's visibility
EXTERN_C MIR_APP_DLL(void) Menu_ShowItem(HGENMENU hMenuItem, bool bShow);
@@ -181,6 +181,11 @@ EXTERN_C MIR_APP_DLL(void) Menu_ShowItem(HGENMENU hMenuItem, bool bShow);
EXTERN_C MIR_APP_DLL(void) Menu_SetChecked(HGENMENU hMenuItem, bool bSet);
/////////////////////////////////////////////////////////////////////////////////////////
+// sets menu item's Visible checkbox programmatically and write it to the options
+
+EXTERN_C MIR_APP_DLL(void) Menu_SetVisible(HGENMENU pimi, bool bVisible);
+
+/////////////////////////////////////////////////////////////////////////////////////////
// Creates a new menu object
// szName = unique menu object identifier
// szDisplayName = menu display name (auto-translated by core)