# Function Reference

# _GUICtrlMenu_GetMenuContextHelpID

Retrieves the context help identifier

#include <GuiMenu.au3>
_GUICtrlMenu_GetMenuContextHelpID ( $hMenu )

## Parameters

$hMenu | Handle of the menu

## Return Value

Returns the context help identifier.

## Related

_GUICtrlMenu_SetMenuContextHelpID

## Example

    #include "Extras\HelpFileInternals.au3"

    #include <GuiMenu.au3>

    Global $g_hWnd

    Example()

    Func Example()
        Local $hMain, $hFile

        ; Open Notepad
        Run("notepad.exe")
        $g_hWnd = WinWaitActive("[CLASS:Notepad]")
        $hMain = _GUICtrlMenu_GetMenu($g_hWnd)
        $hFile = _GUICtrlMenu_GetItemSubMenu($hMain, 0)

        ; Get/Set File menu help context ID
        Writeln("File help context ID: " & _GUICtrlMenu_GetMenuContextHelpID($hFile))
        _GUICtrlMenu_SetMenuContextHelpID($hFile, 1234)
        Writeln("File help context ID: " & _GUICtrlMenu_GetMenuContextHelpID($hFile))

        _NotepadForceClose($g_hWnd)
    EndFunc   ;==>Example

    ; Write a line of text to Notepad
    Func Writeln($sText, $hWnd = $g_hWnd)
        ControlSend($hWnd, "", ControlGetFocus($hWnd), $sText & @CRLF)
    EndFunc   ;==>Writeln