2.1.25.40 IsMenu


Description

This function determines whether a handle is a menu handle.

Syntax

BOOL IsMenu( HMENU hMenu )

Parameters

hMenu
[input] Handle to the menu.

Return

If hMenu is a menu handle, the return value is TRUE.

Examples

EX1

void IsMenu_ex1()
{
	HMENU hmn = GetMenu(GetWindow());
	if ( IsMenu(hmn) )
		out_str("Get Menu handler successfully");
	return;
}

Remark

See Also

SetMenu, GetMenu, GetSubMenu

Header to Include

origin.h

Reference