ITravelLog::InsertMenuEntries method (shdeprecated.h)
Deprecated. Inserts entries into the specified menu.
Syntax
HRESULT InsertMenuEntries(
[in] IUnknown *punk,
[in] HMENU hmenu,
[in] int nPos,
[in] int idFirst,
[in] int idLast,
[in] DWORD dwFlags
);
Parameters
[in] punk
Type: IUnknown*
A pointer to an IUnknown representing the nearest browser or frame within which the travel generating the log is taking place.
[in] hmenu
Type: HMENU
The handle of the menu.
[in] nPos
Type: int
The position in the menu to insert the entries.
[in] idFirst
Type: int
The ID of the first entry to be inserted.
[in] idLast
Type: int
The ID of the last entry to be inserted. The difference between idFirst and idLast is the maximum number of entries that can be inserted into the menu.
[in] dwFlags
Type: DWORD
The types of entries to add to the menu. Includes the following:
TLMENUF_INCLUDECURRENT
Include the current page.
TLMENUF_CHECKCURRENT
Add a check mark next to the entry of the current page.
TLMENUF_BACK
Default. The previous pages.
TLMENUF_FORE
The next pages.
TLMENUF_BACKANDFORTH
Previous, current, and next pages.
Return value
Type: HRESULT
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Requirements
Requirement | Value |
---|---|
Target Platform | Windows |
Header | shdeprecated.h |