MCPcopy Create free account
hub / github.com/AutoHotkey/AutoHotkey / AllowMainWindow

Method AllowMainWindow

source/script.cpp:983–991  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

981
982
983void Script::AllowMainWindow(bool aAllow)
984{
985 if (g_AllowMainWindow == aAllow)
986 return;
987 g_AllowMainWindow = aAllow;
988 EnableOrDisableViewMenuItems(GetMenu(g_hWnd)
989 , aAllow ? MF_ENABLED : MF_DISABLED | MF_GRAYED);
990 mTrayMenu->EnableStandardOpenItem(aAllow);
991}
992
993void Script::EnableOrDisableViewMenuItems(HMENU aMenu, UINT aFlags)
994{

Callers 1

BIV_DECL_WFunction · 0.80

Calls 1

Tested by

no test coverage detected