/*
* COPYRIGHT: See COPYING in the top level directory
- * PROJECT: ReactOS kernel
+ * PROJECT: ReactOS Win32k subsystem
* PURPOSE: Focus functions
- * FILE: subsystem/win32/win32k/ntuser/focus.c
+ * FILE: subsystems/win32/win32k/ntuser/focus.c
* PROGRAMER: ReactOS Team
*/
return TRUE;
}
- /* call CBT hook chain */
+ /* Call CBT hook chain */
cbt.fMouse = MouseActivate;
cbt.hWndActive = hWndPrev;
if (co_HOOK_CallHooks( WH_CBT, HCBT_ACTIVATE, (WPARAM)hWnd, (LPARAM)&cbt))
}
BOOL FASTCALL
-co_IntSetForegroundWindow(PWND Window)//FIXME: can Window be NULL??
+co_IntSetForegroundWindow(PWND Window) // FIXME: Can Window be NULL??
{
/*if (Window)*/ ASSERT_REFS_CO(Window);
return hWndPrev;
}
- /* call CBT hook chain */
+ /* Call CBT hook chain */
cbt.fMouse = FALSE;
cbt.hWndActive = hWndPrev;
if (co_HOOK_CallHooks( WH_CBT, HCBT_ACTIVATE, (WPARAM)hWnd, (LPARAM)&cbt))
{
if (hWndPrev == Window->head.h)
{
- return hWndPrev; /* nothing to do */
+ return hWndPrev; /* Nothing to do */
}
/* Check if we can set the focus to this window */
return 0;
}
- /* activate pwndTop if needed. */
+ /* Activate pwndTop if needed. */
if (pwndTop->head.h != ThreadQueue->ActiveWindow)
{
co_IntSetActiveWindow(pwndTop);
if (hWnd == NULL) // Release mode.
{
MOUSEINPUT mi;
- /// These are hacks!
- /* also remove other windows if not capturing anymore */
+ /// These are HACKS!
+ /* Also remove other windows if not capturing anymore */
MsqSetStateWindow(ThreadQueue, MSQ_STATE_MENUOWNER, NULL);
MsqSetStateWindow(ThreadQueue, MSQ_STATE_MOVESIZE, NULL);
///