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

Method FindTabControl

source/script_gui.cpp:10089–10102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10087
10088
10089GuiControlType *GuiType::FindTabControl(TabControlIndexType aTabControlIndex)
10090{
10091 if (aTabControlIndex == MAX_TAB_CONTROLS)
10092 // This indicates it's not a member of a tab control. Callers rely on this check.
10093 return NULL;
10094 TabControlIndexType tab_control_index = 0;
10095 for (GuiIndexType u = 0; u < mControlCount; ++u)
10096 if (mControl[u]->type == GUI_CONTROL_TAB)
10097 if (tab_control_index == aTabControlIndex)
10098 return mControl[u];
10099 else
10100 ++tab_control_index;
10101 return NULL; // Since above didn't return, indicate failure.
10102}
10103
10104
10105

Callers 3

InvokeMethod · 0.80
TabDialogProcFunction · 0.80
MsgSleepFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected