Go to the source code of this file.
◆ ok_hwnd
Value: do \
{ \
ok(_val == _exp, #
val " = %p (%d), expected %p (%d)\n", _val, _ival, _exp, _iexp); \
} while (0)
static int get_iwnd(_In_ HWND hWnd, _In_ BOOL set)
Definition at line 14 of file SetParent.c.
◆ EnumProc()
◆ get_iwnd()
Definition at line 24 of file SetParent.c.
27{
30 return 0;
32 {
35 }
37 return 0;
39 {
41 {
44 }
45 }
46 ok(0,
"Too many windows!\n");
47 return 0;
48}
static HWND hWndList[5+1]
static const int hWndCount
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
Referenced by START_TEST(), and WndProc().
◆ START_TEST()
Definition at line 114 of file SetParent.c.
115{
118
120
124
125 hWnd =
CreateWindowExW(0,
L"CreateTest",
NULL, 0, 10, 10, 20, 20,
NULL,
NULL, 0,
NULL);
128
129 hWnd =
CreateWindowExW(0,
L"CreateTest",
NULL, 0, 40, 10, 20, 20,
NULL,
NULL, 0,
NULL);
132
133 hWnd =
CreateWindowExW(0,
L"CreateTest",
NULL,
WS_CHILD, 60, 10, 20, 20,
hWndList[1],
NULL, 0,
NULL);
136
137 hWnd =
CreateWindowExW(0,
L"CreateTest",
NULL,
WS_CHILD, 80, 10, 20, 20,
hWndList[1],
NULL, 0,
NULL);
140
141 hWnd =
CreateWindowExW(0,
L"CreateTest",
NULL,
WS_CHILD, 60, 10, 20, 20,
hWndList[2],
NULL, 0,
NULL);
144
147 {
152 }
156
162
169
175
178 {
183 }
186 }
static LRESULT CALLBACK WndProc(_In_ HWND hWnd, _In_ UINT message, _In_ WPARAM wParam, _In_ LPARAM lParam)
#define ok_hwnd(val, exp)
#define INVALID_HANDLE_VALUE
static BOOL IsDWmMsg(UINT msg)
#define RECORD_MESSAGE(...)
static BOOL IseKeyMsg(UINT msg)
TW_UINT32 TW_UINT16 TW_UINT16 MSG
static __inline ATOM RegisterSimpleClass(WNDPROC lpfnWndProc, LPCWSTR lpszClassName)
DWORD WINAPI GetCurrentThreadId(void)
LRESULT WINAPI DispatchMessageA(_In_ const MSG *)
BOOL WINAPI IsWindow(_In_opt_ HWND)
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)
HWND WINAPI GetParent(_In_ HWND)
BOOL WINAPI DestroyWindow(_In_ HWND)
◆ WndProc()
Definition at line 64 of file SetParent.c.
69{
72
76
78
80 {
83 {
84
88 }
89 else
90 {
91
93 }
95 {
100
106 }
107 break;
108 }
109
111}
static BOOL CALLBACK EnumProc(_In_ HWND hWnd, _In_ LPARAM lParam)
LRESULT WINAPI DefWindowProcW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
HWND WINAPI SetParent(_In_ HWND, _In_opt_ HWND)
BOOL WINAPI EnumChildWindows(_In_opt_ HWND, _In_ WNDENUMPROC, _In_ LPARAM)
BOOL WINAPI EnumThreadWindows(_In_ DWORD, _In_ WNDENUMPROC, _In_ LPARAM)
Referenced by START_TEST().
◆ dwThreadId
◆ hWndCount
◆ hWndList
Definition at line 10 of file SetParent.c.
Referenced by AddFontToList(), AddNTOSInstallationItem(), CleanupPartitionList(), DeleteTreeItem(), DrawPartitionList(), FaceNameList_Initialize(), FaceNameList_SelectFont(), get_iwnd(), GetSelectedComboListItem(), GetSelectedListViewItem(), InitGenericComboList(), InitGenericListView(), InitPartitionList(), OptionsProc(), PrintDiskData(), PrintPartitionData(), START_TEST(), and WndProc().