mirror of
https://github.com/reactos/reactos.git
synced 2024-09-15 15:19:37 +00:00
Implemented IsWindow()
svn path=/trunk/; revision=4679
This commit is contained in:
parent
484cf7d5bf
commit
017f478b25
|
@ -1,4 +1,4 @@
|
||||||
/* $Id: window.c,v 1.27 2003/05/04 15:41:40 gvg Exp $
|
/* $Id: window.c,v 1.28 2003/05/12 18:52:14 gvg Exp $
|
||||||
*
|
*
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS user32.dll
|
* PROJECT: ReactOS user32.dll
|
||||||
|
@ -333,6 +333,7 @@ CreateWindowExA(DWORD dwExStyle,
|
||||||
HWND Handle;
|
HWND Handle;
|
||||||
INT sw;
|
INT sw;
|
||||||
|
|
||||||
|
OutputDebugStringA("CreateWindowEx\n");
|
||||||
if (IS_ATOM(lpClassName))
|
if (IS_ATOM(lpClassName))
|
||||||
{
|
{
|
||||||
RtlInitUnicodeString(&ClassName, NULL);
|
RtlInitUnicodeString(&ClassName, NULL);
|
||||||
|
@ -807,7 +808,9 @@ IsIconic(HWND hWnd)
|
||||||
WINBOOL STDCALL
|
WINBOOL STDCALL
|
||||||
IsWindow(HWND hWnd)
|
IsWindow(HWND hWnd)
|
||||||
{
|
{
|
||||||
return FALSE;
|
DWORD WndProc = NtUserGetWindowLong(hWnd, GWL_WNDPROC);
|
||||||
|
|
||||||
|
return (0 != WndProc || ERROR_INVALID_HANDLE != GetLastError());
|
||||||
}
|
}
|
||||||
|
|
||||||
WINBOOL STDCALL
|
WINBOOL STDCALL
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* $Id: window.c,v 1.41 2003/05/02 07:52:33 gvg Exp $
|
/* $Id: window.c,v 1.42 2003/05/12 18:52:14 gvg Exp $
|
||||||
*
|
*
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS kernel
|
* PROJECT: ReactOS kernel
|
||||||
|
@ -1122,6 +1122,7 @@ NtUserGetWindowLong(HWND hWnd, DWORD Index)
|
||||||
(PVOID*)&WindowObject);
|
(PVOID*)&WindowObject);
|
||||||
if (!NT_SUCCESS(Status))
|
if (!NT_SUCCESS(Status))
|
||||||
{
|
{
|
||||||
|
SetLastWin32Error(ERROR_INVALID_HANDLE);
|
||||||
return(0);
|
return(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue