moved IntIsMenu() to menu.c

svn path=/trunk/; revision=6762
This commit is contained in:
Thomas Bluemel 2003-11-23 12:31:53 +00:00
parent b478b61c31
commit bfb5636854
3 changed files with 21 additions and 34 deletions

View file

@ -76,6 +76,9 @@ IntSetMenuContextHelpId(PMENU_OBJECT MenuObject, DWORD dwContextHelpId);
BOOL FASTCALL
IntGetMenuInfo(PMENU_OBJECT MenuObject, LPMENUINFO lpmi);
BOOL FASTCALL
IntIsMenu(HMENU hMenu);
BOOL FASTCALL
IntSetMenuInfo(PMENU_OBJECT MenuObject, LPMENUINFO lpmi);

View file

@ -16,7 +16,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
/* $Id: menu.c,v 1.32 2003/11/23 11:39:48 navaraf Exp $
/* $Id: menu.c,v 1.33 2003/11/23 12:31:53 weiden Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
@ -419,6 +419,22 @@ IntGetMenuInfo(PMENU_OBJECT MenuObject, LPMENUINFO lpmi)
return FALSE;
}
BOOL FASTCALL
IntIsMenu(HMENU hMenu)
{
PMENU_OBJECT Menu;
if (!(Menu = IntGetMenuObject(hMenu)))
return FALSE;
else
IntReleaseMenuObject(Menu);
return TRUE;
}
BOOL FASTCALL
IntSetMenuInfo(PMENU_OBJECT MenuObject, LPMENUINFO lpmi)
{

View file

@ -16,7 +16,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
/* $Id: window.c,v 1.143 2003/11/23 11:39:48 navaraf Exp $
/* $Id: window.c,v 1.144 2003/11/23 12:31:53 weiden Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
@ -166,38 +166,6 @@ IntIsWindow(HWND hWnd)
return TRUE;
}
/*
* IntIsMenu
*
* The function determines whether the specified menu handle identifies
* an existing menu.
*
* Parameters
* hMenu
* Handle to the menu to test.
*
* Return Value
* If the menu handle identifies an existing menu, the return value
* is TRUE. If the menu handle does not identify an existing menu,
* the return value is FALSE.
*
* FIXME: Move this routine to menu.c.
*/
BOOL FASTCALL
IntIsMenu(HMENU hMenu)
{
PMENU_OBJECT Menu;
if (!(Menu = IntGetMenuObject(hMenu)))
return FALSE;
else
IntReleaseMenuObject(Menu);
return TRUE;
}
/*
* IntGetProcessWindowObject
*