14 #define ok_hwnd(val, exp) do \ 16 HWND _val = (val), _exp = (exp); \ 17 int _ival = get_iwnd(_val, FALSE); \ 18 int _iexp = get_iwnd(_exp, FALSE); \ 19 ok(_val == _exp, #val " = %p (%d), expected %p (%d)\n", _val, _ival, _exp, _iexp); \ 46 ok(0,
"Too many windows!\n");
58 return hWnd != hLookingFor;
125 hWnd =
CreateWindowExW(0,
L"CreateTest",
NULL, 0, 10, 10, 20, 20,
NULL,
NULL, 0,
NULL);
129 hWnd =
CreateWindowExW(0,
L"CreateTest",
NULL, 0, 40, 10, 20, 20,
NULL,
NULL, 0,
NULL);
133 hWnd =
CreateWindowExW(0,
L"CreateTest",
NULL,
WS_CHILD, 60, 10, 20, 20,
hWndList[1],
NULL, 0,
NULL);
137 hWnd =
CreateWindowExW(0,
L"CreateTest",
NULL,
WS_CHILD, 80, 10, 20, 20,
hWndList[1],
NULL, 0,
NULL);
141 hWnd =
CreateWindowExW(0,
L"CreateTest",
NULL,
WS_CHILD, 60, 10, 20, 20,
hWndList[2],
NULL, 0,
NULL);
BOOL WINAPI EnumChildWindows(_In_opt_ HWND, _In_ WNDENUMPROC, _In_ LPARAM)
LRESULT WINAPI DispatchMessageA(_In_ const MSG *)
BOOL WINAPI IsWindow(_In_opt_ HWND)
HWND WINAPI SetParent(_In_ HWND, _In_opt_ HWND)
TW_UINT32 TW_UINT16 TW_UINT16 MSG
BOOL WINAPI EnumThreadWindows(_In_ DWORD, _In_ WNDENUMPROC, _In_ LPARAM)
#define INVALID_HANDLE_VALUE
static HWND hWndList[5+1]
BOOL WINAPI DestroyWindow(_In_ HWND)
LRESULT WINAPI DefWindowProcW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
static BOOL IseKeyMsg(UINT msg)
#define ok_hwnd(val, exp)
DWORD WINAPI GetCurrentThreadId(VOID)
static __inline ATOM RegisterSimpleClass(WNDPROC lpfnWndProc, LPCWSTR lpszClassName)
BOOL WINAPI SetCursorPos(_In_ int, _In_ int)
HWND WINAPI CreateWindowExW(_In_ DWORD dwExStyle, _In_opt_ LPCWSTR lpClassName, _In_opt_ LPCWSTR lpWindowName, _In_ DWORD dwStyle, _In_ int X, _In_ int Y, _In_ int nWidth, _In_ int nHeight, _In_opt_ HWND hWndParent, _In_opt_ HMENU hMenu, _In_opt_ HINSTANCE hInstance, _In_opt_ LPVOID lpParam)
static BOOL IsDWmMsg(UINT msg)
HWND WINAPI GetParent(_In_ HWND)
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
static const int hWndCount
#define RECORD_MESSAGE(...)
static BOOL CALLBACK EnumProc(_In_ HWND hWnd, _In_ LPARAM lParam)
static LRESULT CALLBACK WndProc(_In_ HWND hWnd, _In_ UINT message, _In_ WPARAM wParam, _In_ LPARAM lParam)
static int get_iwnd(_In_ HWND hWnd, _In_ BOOL set)