mirror of
https://github.com/reactos/reactos.git
synced 2025-07-04 01:41:21 +00:00
Sorry, did a bad commit on this file. Reverting to 1.143, the previous rev.
svn path=/trunk/; revision=6773
This commit is contained in:
parent
d792147982
commit
a370e8e8d3
1 changed files with 38 additions and 2 deletions
|
@ -16,7 +16,7 @@
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
/* $Id: window.c,v 1.145 2003/11/24 00:22:53 arty Exp $
|
/* $Id: window.c,v 1.146 2003/11/24 00:26:08 arty Exp $
|
||||||
*
|
*
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS kernel
|
* PROJECT: ReactOS kernel
|
||||||
|
@ -166,6 +166,38 @@ IntIsWindow(HWND hWnd)
|
||||||
return TRUE;
|
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
|
* IntGetProcessWindowObject
|
||||||
*
|
*
|
||||||
|
@ -842,7 +874,7 @@ IntSetFocusWindow(HWND hWnd)
|
||||||
hWndTop = NtUserGetAncestor(hWndTop, GA_PARENT);
|
hWndTop = NtUserGetAncestor(hWndTop, GA_PARENT);
|
||||||
}
|
}
|
||||||
|
|
||||||
#if 0
|
#if 0 /* FIXME */
|
||||||
/* call hooks */
|
/* call hooks */
|
||||||
if (HOOK_CallHooks(WH_CBT, HCBT_SETFOCUS, (WPARAM)hwnd, (LPARAM)previous, TRUE))
|
if (HOOK_CallHooks(WH_CBT, HCBT_SETFOCUS, (WPARAM)hwnd, (LPARAM)previous, TRUE))
|
||||||
{
|
{
|
||||||
|
@ -860,13 +892,16 @@ IntSetFocusWindow(HWND hWnd)
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
#if 0 /* FIXME */
|
||||||
if (! NtUserIsWindow(hWnd))
|
if (! NtUserIsWindow(hWnd))
|
||||||
{
|
{
|
||||||
/* Abort if window destroyed */
|
/* Abort if window destroyed */
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#if 0 /* FIXME */
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
/* call hooks */
|
/* call hooks */
|
||||||
|
@ -876,6 +911,7 @@ IntSetFocusWindow(HWND hWnd)
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
hWndOldFocus = set_focus_window(hWnd, WindowObject, hWndOldFocus);
|
hWndOldFocus = set_focus_window(hWnd, WindowObject, hWndOldFocus);
|
||||||
if (WindowObject != NULL)
|
if (WindowObject != NULL)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue