171 trace (
"Control %Id is out of range\n",
p->id);
179 trace (
"Control %Id is out of range\n",
p->id);
182 if (
hwnd[
p->id] != 0)
184 trace (
"Control %Id is used more than once\n",
p->id);
189 sprintf (ctrlname,
"ctrl%4.4Id",
p->id);
190 hwnd[
p->id] =
CreateWindowExA(
p->exstyle,
p->parent ?
"static" :
"GetNextDlgItemWindowClass", ctrlname,
p->style, 10, 10, 10, 10,
hwnd[
p->parent],
p->parent ? (
HMENU) (2000 +
p->id) : 0,
hinst, 0);
193 trace (
"Failed to create control %Id\n",
p->id);
205 if (
style !=
p->style || exstyle !=
p->exstyle)
207 trace (
"Style mismatch at %Id: %8.8lx %8.8lx cf %8.8lx %8.8lx\n",
p->id,
style, exstyle,
p->style,
p->exstyle);
219 return ((repeat & 0x0000FFFF) | ((scancode & 0x00FF) << 16) |
220 (extended ? 0x01000000 : 0) | (wasdown ? 0x40000000 : 0));
354 { 1, 1, 6, 0, 0, 1, 0},
355 { 1, 2, 6, 0, 1, 1, 0},
356 { 1, 3, 6, 6, 0, 1, 0},
357 { 1, 4, 6, 6, 1, 1, 0},
358 { 1, 5, 6, 0, 0, 0, 66},
359 { 1, 6, 6, 0, 1, 0, 67},
360 { 1, 7, 6, 6, 0, 0, 66},
361 { 1, 8, 6, 6, 1, 0, 67},
363 { 1, 9, 4, 83, 1, 0, 84},
364 { 1, 10, 4, 83, 0, 0, 5},
365 { 1, 11, 5, 81, 1, 0, 67},
366 { 1, 12, 5, 81, 0, 0, 66},
367 { 1, 13, 5, 82, 1, 1, 78},
369 { 1, 14, 5, 82, 0, 1, 79},
370 { 1, 15, 6, 70, 0, 0, 72},
371 { 1, 16, 6, 72, 0, 0, 25},
372 { 1, 17, 6, 75, 0, 0, 26},
373 { 1, 18, 6, 77, 0, 0, 76},
374 { 1, 19, 6, 79, 0, 0, 66},
375 { 1, 20, 6, 71, 0, 0, 72},
376 { 1, 21, 6, 64, 0, 0, 66},
378 { 1, 22, 6, 25, 0, 0, 70},
379 { 1, 23, 6, 68, 0, 0, 68},
380 { 1, 24, 6, 25, 0, 1, 72},
381 { 1, 25, 1, 70, 0, 0, 72},
383 { 1, 27, 1, 70, 1, 0, 72},
386 { 1, 29, 6, 67, 1, 0, 72},
387 { 1, 30, 6, 72, 1, 1, 67},
389 { 1, 35, 2, 0, 0, 0, 60},
390 { 1, 36, 2, 0, 1, 0, 60},
392 { 0, 0, 0, 0, 0, 0, 0}
403 ok (
a ==
hwnd[
p->res],
"Test %d: %s %s item of %d in %d was %d instead of %d\n",
p->test,
p->prev ?
"Prev" :
"Next",
p->tab ?
"Tab" :
"Group",
p->ctl,
p->dlg,
id(
a),
p->res);
447 "button",
"Button &1",
557 static const short sample[] = { 10,1,2,3,4,5 };
559 short *
data =
cs->lpCreateParams;
560 ok(!
memcmp(
data, sample,
sizeof(sample)),
"data mismatch: %d,%d,%d,%d,%d\n",
data[0],
data[1],
data[2],
data[3],
data[4]);
639 memset (&cls_w, 0,
sizeof(cls_w));
649 HWND child1, child2, child3;
655 "WM_NEXTDLGCTLWndClass",
656 "WM_NEXTDLGCTL Message test window",
729 ok(child1 !=
NULL,
"failed to create first child\n");
732 ok(child2 !=
NULL,
"failed to create second child\n");
736 ok(child3 !=
NULL,
"failed to create subchild\n");
740 ok(
LOWORD(dwVal) == 200,
"expected 200, got %lx\n", dwVal);
744 ok(
LOWORD(dwVal) == 300,
"expected 300, got %lx\n", dwVal);
746 "expected child3 not to be marked as DLGC_DEFPUSHBUTTON\n");
761 ok(0,
"unexpected hook called, code %d\n",
code);
822 "Focus did not move to cancel button\n");
879 ok(
msg.wParam != 0x3f &&
msg.wParam != 0x5b57,
"Got unexpected wparam %#Ix.\n",
msg.wParam);
881 ok(
msg.wParam == 0x97ade5,
"Got unexpected wparam %#Ix.\n",
msg.wParam);
883 ok(
msg.wParam == 0x3f,
"Got unexpected wparam %#Ix.\n",
msg.wParam);
885 ok(
ret,
"IsDialogMessageA failed.\n");
971 static HWND hChildDlg;
987 temp.tmplate.dwExtendedStyle = 0;
988 temp.tmplate.cdit = 0;
997 ok(hChildDlg != 0,
"Failed to create test dialog.\n");
1013 return "a null handle";
1015 return "the dialog handle";
1017 return "the group box control";
1019 return "the first button";
1021 return "the second button";
1023 return "the cancel button";
1025 return "unknown handle";
1051 "Error in wrc - Detected WS_TABSTOP as default style for GROUPBOX\n");
1054 "Modal dialogs should not be shown until the message queue first goes empty\n");
1057 "Error in initial focus when WM_INITDIALOG returned FALSE: "
1058 "Expected NULL focus, got %s (%p).\n",
1062 "Error after first SetFocus() when WM_INITDIALOG returned FALSE: "
1063 "Expected the second button (%p), got %s (%p).\n",
1082 "Error in initial focus when WM_INITDIALOG returned TRUE: "
1083 "Expected the second button (%p), got %s (%p).\n",
1088 "Error after first SetFocus() when WM_INITDIALOG returned TRUE: "
1089 "Expected the second button (%p), got %s (%p).\n",
1101 DWORD selectionStart = 0xdead, selectionEnd = 0xbeef;
1109 ok (hDlg != 0,
"Failed to create test dialog.\n");
1120 ok(selectionStart == 0 && selectionEnd == 11,
"Text selection after WM_SETFOCUS is [%li, %li) expected [0, 11)\n", selectionStart, selectionEnd);
1126 ok(selectionStart == 0 && selectionEnd == 0,
"Text selection after WM_ACTIVATE is [%li, %li) expected [0, 0)\n", selectionStart, selectionEnd);
1145 ok(hDlg != 0,
"Failed to create test dialog.\n");
1148 ok(
GetFocus() == hLabel,
"Focus not set to label, focus=%p dialog=%p label=%p\n",
GetFocus(), hDlg, hLabel);
1154 ok(hDlg != 0,
"Failed to create test dialog.\n");
1159 ok(
GetFocus() ==
NULL,
"Focus set on WM_ACTIVATE, focus=%p dialog=%p label=%p\n",
GetFocus(), hDlg, hLabel);
1163 ok(
GetFocus() == hLabel,
"Focus not set to label on WM_SETFOCUS, focus=%p dialog=%p label=%p\n",
GetFocus(), hDlg, hLabel);
1176 DWORD selectionStart = 0xdead, selectionEnd = 0xbeef;
1183 ok(hDlg != 0,
"Failed to create test dialog.\n");
1186 ok(
GetFocus() == edit,
"Focus not set to edit, focus=%p, dialog=%p, edit=%p\n",
1189 ok(selectionStart == 0 && selectionEnd == 11,
1190 "Text selection after WM_SETFOCUS is [%li, %li) expected [0, 11)\n",
1191 selectionStart, selectionEnd);
1210 ok(hDlg != 0,
"Failed to create test dialog.\n");
1213 ok(
GetFocus() == edit,
"Focus not set to edit, focus=%p, dialog=%p, edit=%p\n",
1225 strcpy(
string,
"Overwrite Me");
1227 ok(!
ret,
"GetDlgItemText(NULL) shouldn't have succeeded\n");
1230 "string retrieved using GetDlgItemText should have been NULL terminated\n");
1250 ok(
val == -1,
"Unexpected id.\n");
1253 ok(
val == -1,
"Unexpected id %Id.\n",
val);
1259 ok(
val == -2,
"Unexpected id.\n");
1262 ok(
val == -2,
"Unexpected id %Id.\n",
val);
1276 hwnd =
CreateWindowA(
"button",
"parent",
WS_VISIBLE, 0, 0, 100, 100,
NULL, 0,
g_hinst,
NULL);
1277 ok(
hwnd !=
NULL,
"failed to created window\n");
1280 child1 =
CreateWindowA(
"button",
"child1",
WS_VISIBLE|
WS_CHILD, 0, 0, 10, 10,
hwnd, 0,
g_hinst,
NULL);
1281 ok(child1 !=
NULL,
"failed to create first child\n");
1282 child2 =
CreateWindowA(
"button",
"child2",
WS_VISIBLE|
WS_CHILD, 0, 0, 10, 10,
hwnd, 0,
g_hinst,
NULL);
1283 ok(child2 !=
NULL,
"failed to create second child\n");
1286 ok(hwnd2 == child1,
"expected first child, got %p\n", hwnd2);
1289 ok(hwnd2 == child1,
"expected first child to be top, got %p\n", hwnd2);
1294 ok(hwnd2 == child2,
"expected second child to be top, got %p\n", hwnd2);
1298 ok(hwnd2 == child2,
"expected second child, got %p\n", hwnd2);
1302 child2 =
CreateWindowA(
"button",
"child2",
WS_VISIBLE|
WS_CHILD, 0, 0, 10, 10, child1, 0,
g_hinst,
NULL);
1303 ok(child2 !=
NULL,
"failed to create second child\n");
1309 ok(!hwnd2,
"expected child to not be found, got %p\n", hwnd2);
1315 ok(!hwnd2,
"expected child to not be found, got %p\n", hwnd2);
1322 ok(
retval == 0xdead,
"Unexpected return value.\n");
1361 "Expected wParam to be the handle to the first tabstop control (%p), got %p\n",
1385 static int received_idok;
1395 ok(received_idok == 0xdead,
"WM_COMMAND/0xdead not received\n");
1399 ok(received_idok ==
IDOK,
"WM_COMMAND/IDOK not received\n");
1406 if (received_idok == -1)
1409 ok(!
hwnd,
"dialog item with ID 0xdead should not exist\n");
1433 ok(
control != 0,
"dialog control with id 7 not found\n");
1443 ok(
control != 0,
"dialog control with id 8 not found\n");
1634 ok(
ret,
"Failed to set window text.\n");
1639 ok(
ret,
"Failed to set window text.\n");
1643 ok(
buff[0] == 0 &&
buff[1] ==
'A' &&
len == 0,
"Unexpected window text %#x, %#x, len %d\n",
1646 memset(buffW, 0xff,
sizeof(buffW));
1670 ok(
ret,
"Failed to set window text.\n");
1675 ok(
ret,
"Failed to set window text.\n");
1679 ok(
buff[0] == 0 &&
buff[1] ==
'A' &&
len == 0,
"Unexpected window text %#x, %#x, len %d\n",
1682 memset(buffW, 0xff,
sizeof(buffW));
1684 ok(buffW[0] ==
'W' && buffW[1] == 0xffff &&
len == 0,
"Unexpected window text %#x, %#x, len %d\n",
1685 buffW[0], buffW[1],
len);
1741 ok(
ret,
"Failed to set window text.\n");
1746 ok(
ret,
"Failed to set window text.\n");
1752 memset(buffW, 0xff,
sizeof(buffW));
1754 ok(buffW[0] == 0 && buffW[1] == 0xffff &&
len == 0,
"Unexpected window text %s, len %d\n",
1777 ok(
ret,
"Failed to set window text.\n");
1782 ok(
ret,
"Failed to set window text.\n");
1788 memset(buffW, 0xff,
sizeof(buffW));
1790 ok(buffW[0] == 0 && buffW[1] == 0xffff &&
len == 0,
"Unexpected window text %#x, %#x, len %d\n",
1791 buffW[0], buffW[1],
len);
1841 ok(0,
"Unexpected test mode %d.\n",
mode);
1858 ok(is_unicode ==
IsWindowUnicode(hdlg),
"Unexpected unicode window property.\n");
1892 static const WCHAR nameW[] = {
'T',
'E',
'S',
'T',
'_',
'E',
'M',
'P',
'T',
'Y',
'_',
'D',
'I',
'A',
'L',
'O',
'G',0};
1897 ok(
ret == -7,
"expected -7, got %Id\n",
ret);
1901 ok(0 ==
ret ||
broken(
ret == -1),
"DialogBoxParamA returned %Id, expected 0\n",
ret);
1904 "got %ld, expected ERROR_INVALID_WINDOW_HANDLE\n",
GetLastError());
1909 ok(-1 ==
ret,
"DialogBoxParamA returned %Id, expected -1\n",
ret);
1913 "got %ld, expected ERROR_INVALID_WINDOW_HANDLE\n",
GetLastError());
1917 ok(0 ==
ret,
"DialogBoxParamA returned %Id, expected 0\n",
ret);
1921 ok(-1 ==
ret,
"DialogBoxParamA returned %Id, expected -1\n",
ret);
1924 "got %ld, expected ERROR_RESOURCE_NAME_NOT_FOUND\n",
GetLastError());
1928 ok(
ret == -1,
"DialogBoxParamA returned %Id, expected -1\n",
ret);
1932 "got %lu, expected ERROR_CANNOT_FIND_WND_CLASS\n",
GetLastError());
1936 ok(
ret == 0,
"DefDlgProcA returned %Id, expected 0\n",
ret);
1939 "got %ld, expected ERROR_INVALID_WINDOW_HANDLE\n",
GetLastError());
1948 ok(
ret == 0,
"Unexpected ret value %Id.\n",
ret);
1952 ok(
ret == -123,
"Unexpected ret value %Id.\n",
ret);
1955 ok(
ret == -123,
"Unexpected ret value %Id.\n",
ret);
1958 ok(
ret == -123,
"Unexpected ret value %Id.\n",
ret);
1961 ok(
ret == -123,
"Unexpected ret value %Id.\n",
ret);
1990 static unsigned char dlgTemplate[] =
1995 0x00,0x00,0x00,0x00,
1996 0x00,0x00,0x00,0x00,
1997 0xc0,0x00,0xc8,0x80,
2012 0x00,0x00,0x00,0x00,
2013 0x00,0x00,0x00,0x00,
2014 0x00,0x00,0x00,0x50,
2019 0x00,0x01,0x00,0x00,
2020 0xff,0xff,0x82,0x00,
2038 NONCLIENTMETRICSW ncMetrics;
2048 win_skip(
"dialog wasn't created\n");
2055 skip(
"dialog uses system font\n");
2061 ncMetrics.cbSize =
FIELD_OFFSET(NONCLIENTMETRICSW, iPaddedBorderWidth);
2064 ncMetrics.lfMessageFont.lfHeight = lfStaticFont.
lfHeight;
2067 "dialog doesn't use message box font\n");
2086 ok (hDlg != 0,
"Failed to create test dialog.\n");
2089 ok (foundId == 1000,
"First edit box should have gained focus on dialog creation. Expected: %d, Found: %Id\n", 1000, foundId);
2094 ok (foundId == 1001,
"First edit box should have regained focus after dialog reactivation. Expected: %d, Found: %Id\n", 1001, foundId);
2102 ok (foundId == 1000,
"First edit box should have regained focus after dialog reactivation. Expected: %d, Found: %Id\n", 1000, foundId);
2108 ok (foundId == 1001,
"Second edit box should have gained focus. Expected: %d, Found: %Id\n", 1001, foundId);
2115 ok (foundId == 1001,
"Second edit box should have gained focus after dialog reactivation. Expected: %d, Found: %Id\n", 1001, foundId);
2121 ok (foundId == 1000,
"First edit box should have gained focus on dialog focus. Expected: %d, Found: %Id\n", 1000, foundId);
2127 ok (foundId == 1001,
"Second edit box should have gained focus. Expected: %d, Found: %Id\n", 1001, foundId);
2133 ok (foundId == 1001,
"Second edit box should have gained focus. Expected: %d, Found: %Id\n", 1001, foundId);
2139 ok (foundHwnd ==
NULL,
"Second edit box should have lost focus after being disabled. Expected: %p, Found: %p\n",
NULL, foundHwnd);
2146 ok (foundHwnd ==
NULL,
"No controls should have gained focus after dialog reactivation. Expected: %p, Found: %p\n",
NULL, foundHwnd);
2161 ok(!visible,
"Dialog should not be visible.\n");
2176 ok(!visible,
"Dialog should not be visible.\n");
2181 ok(visible,
"Dialog should be visible.\n");
2188 ok(visible,
"Dialog should be visible.\n");
2211 LONG exstyles, expected_exstyles;
2229 ok(exstyles == expected_exstyles ||
broken(exstyles == (expected_exstyles & ~
WS_EX_TOPMOST)) ,
"got %#lx, expected %#lx\n", exstyles, expected_exstyles);
2231 ok(exstyles == expected_exstyles,
"got %#lx, expected %#lx\n", exstyles, expected_exstyles);
2236 ok(!
strcmp(
text,
"MSGBOX caption"),
"Unexpected window text \"%s\"\n",
text);
2239 ok(msghwnd !=
NULL,
"Expected static control\n");
2353 window =
CreateWindowA(
"static",
"parent", 0, 100, 200, 300, 400,
NULL,
NULL,
NULL,
NULL);
2354 child =
CreateWindowA(
"static",
"child",
WS_CHILD, 10, 20, 100, 100,
window,
NULL,
NULL,
NULL);
2369 ok(!!
dialog,
"failed to create dialog\n");
2414 control =
CreateWindowA(
"static",
"", 0, 100, 200, 300, 400,
NULL,
NULL,
NULL,
NULL);
2415 ok(
control != 0,
"failed to create control window\n");
2421 ok(0 ==
ret,
"DialogBoxParamA returned %Id, expected 0\n",
ret);
2427 control =
CreateWindowW(
L"static",
L"", 0, 100, 200, 300, 400,
NULL,
NULL,
NULL,
NULL);
2428 ok(
control != 0,
"failed to create control window\n");
2433 ok(0 ==
ret,
"DialogBoxParamW returned %Id, expected 0\n",
ret);
static const WCHAR nameW[]
static __inline const char * debugstr_an(const char *s, int n)
HMODULE WINAPI GetModuleHandleW(LPCWSTR lpModuleName)
HMODULE WINAPI DECLSPEC_HOTPATCH GetModuleHandleA(LPCSTR lpModuleName)
HRSRC WINAPI FindResourceA(HMODULE hModule, LPCSTR name, LPCSTR type)
LPVOID WINAPI LockResource(HGLOBAL handle)
HGLOBAL WINAPI LoadResource(HINSTANCE hModule, HRSRC hRsrc)
int WINAPI lstrcmpW(LPCWSTR str1, LPCWSTR str2)
LANGID WINAPI GetUserDefaultLangID(void)
_ACRTIMP int __cdecl memcmp(const void *, const void *, size_t)
_ACRTIMP int __cdecl strcmp(const char *, const char *)
static unsigned char buff[32768]
GLuint GLuint GLsizei count
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
GLenum GLuint GLenum GLsizei const GLchar * buf
GLboolean GLboolean GLboolean GLboolean a
GLfloat GLfloat GLfloat GLfloat h
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
REFIID LPVOID DWORD_PTR dw
#define todo_wine_if(is_todo)
void __cdecl void __cdecl void __cdecl void __cdecl void __cdecl void winetest_pop_context(void)
void __cdecl void __cdecl void __cdecl void __cdecl void __cdecl winetest_push_context(const char *fmt,...) __WINE_PRINTF_ATTR(1
#define memcpy(s1, s2, n)
static struct test_info tests[]
static const char textA[]
static DWORD *static HFONT(WINAPI *pCreateFontIndirectExA)(const ENUMLOGFONTEXDVA *)
static IHTMLWindow2 * window
static const CLSID *static CLSID *static const GUID VARIANT VARIANT *static IServiceProvider DWORD *static HMENU
static unsigned int numwnds
static HWND g_hwndInitialFocusT1
static LRESULT WINAPI test_static_create_procW(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam)
static INT_PTR CALLBACK messageBoxFontDlgWinProc(HWND hDlg, UINT uiMsg, WPARAM wParam, LPARAM lParam)
static const char * testtext
static BOOL OnMainWindowCreate(HWND hwnd, LPCREATESTRUCTA lpcs)
static LRESULT CALLBACK test_IsDialogMessageA_proc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam)
static void test_MessageBox(void)
static LRESULT CALLBACK hook_proc2(INT code, WPARAM wParam, LPARAM lParam)
static void test_WM_NEXTDLGCTL(void)
static unsigned int msgbox_hook_proc_called
static LONG g_styleInitialFocusT1
static WCHAR cs_name_paramW[3]
static void test_IsDialogMessage(void)
static INT_PTR CALLBACK EmptyProcUserTemplate(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
static LRESULT CALLBACK hook_proc(INT code, WPARAM wParam, LPARAM lParam)
static void test_dialog_custom_data(void)
static HWND g_hwndTestDlg
static INT_PTR CALLBACK focusChildDlgWinProc(HWND hwnd, UINT uiMsg, WPARAM wParam, LPARAM lParam)
static INT_PTR CALLBACK test_aw_conversion_dlgprocW(HWND hdlg, UINT msg, WPARAM wparam, LPARAM lparam)
static void dlg_test_aw_message(HWND hdlg, UINT msg)
static INT_PTR CALLBACK delayFocusDlgWinProc(HWND hDlg, UINT uiMsg, WPARAM wParam, LPARAM lParam)
static BOOL g_bInitialFocusInitDlgResult
static INT_PTR CALLBACK TestDefButtonDlgProc(HWND hDlg, UINT uiMsg, WPARAM wParam, LPARAM lParam)
static const char * testmodes[]
static INT_PTR CALLBACK timer_message_dlg_proc(HWND wnd, UINT msg, WPARAM wparam, LPARAM lparam)
static HWND g_hwndInitialFocusT2
static void test_focus(void)
static HWND g_hwndTestDlgBut1
static void test_GetDlgItemText(void)
static void test_GetNextDlgItem(void)
static BOOL OnTestDlgCreate(HWND hwnd, LPCREATESTRUCTA lpcs)
static INT_PTR CALLBACK focusDlgWinProc(HWND hDlg, UINT uiMsg, WPARAM wParam, LPARAM lParam)
static void test_SaveRestoreFocus(void)
static HWND g_hwndTestDlgBut2
static const WCHAR testtextW[]
static INT_PTR CALLBACK custom_test_dialog_proc(HWND hdlg, UINT msg, WPARAM wparam, LPARAM lparam)
static HWND g_hwndButtonCancel
static DWORD get_button_style(HWND button)
static BOOL g_button1Clicked
static void test_GetDlgItem(void)
static INT_PTR CALLBACK capture_release_proc(HWND dialog, UINT message, WPARAM wparam, LPARAM lparam)
static void FormTabMsg(MSG *pMsg, HWND hwnd)
static HWND g_hwndButton1
static INT_PTR CALLBACK disabled_test_proc(HWND hwnd, UINT uiMsg, WPARAM wParam, LPARAM lParam)
static const char * GetHwndString(HWND hw)
static INT_PTR CALLBACK test_aw_conversion_dlgproc(HWND hdlg, UINT msg, WPARAM wparam, LPARAM lparam)
static INT_PTR CALLBACK TestControlStyleDlgProc(HWND hdlg, UINT msg, WPARAM wparam, LPARAM lparam)
static DWORD KeyDownData(int repeat, int scancode, int extended, int wasdown)
static LRESULT CALLBACK testDlgWinProc(HWND hwnd, UINT uiMsg, WPARAM wParam, LPARAM lParam)
static HWND g_hwndInitialFocusGroupBox
static void test_capture_release(void)
static INT_PTR CALLBACK DestroyDlgWinProc(HWND hDlg, UINT uiMsg, WPARAM wParam, LPARAM lParam)
static BOOL CreateWindows(HINSTANCE hinst)
static HWND g_hwndTestDlgEdit
static INT_PTR CALLBACK TestInitDialogHandleProc(HWND hDlg, UINT uiMsg, WPARAM wParam, LPARAM lParam)
static BOOL g_bReceivedCommand
static INT_PTR CALLBACK test_aw_conversion_dlgproc3(HWND hdlg, UINT msg, WPARAM wparam, LPARAM lparam)
static void FormEnterMsg(MSG *pMsg, HWND hwnd)
static INT_PTR CALLBACK DestroyOnCloseDlgWinProc(HWND hDlg, UINT uiMsg, WPARAM wParam, LPARAM lParam)
static const h_entry hierarchy[]
static char cs_name_paramA[4]
static void test_DialogBoxParam(void)
static void test_MessageBoxFontTest(void)
static LRESULT WINAPI test_static_create_procA(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam)
static LRESULT CALLBACK test_control_procA(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam)
static void test_create_controls(void)
static void test_timer_message(void)
static WNDPROC orig_static_proc
static INT_PTR CALLBACK TestReturnKeyDlgProc(HWND hDlg, UINT uiMsg, WPARAM wParam, LPARAM lParam)
static LONG g_styleInitialFocusT2
static BOOL RegisterWindowClasses(void)
static INT_PTR CALLBACK capture_release_modeless_proc(HWND dialog, UINT message, WPARAM wparam, LPARAM lparam)
static BOOL g_MSGF_DIALOGBOX
static LRESULT CALLBACK main_window_procA(HWND hwnd, UINT uiMsg, WPARAM wParam, LPARAM lParam)
static LRESULT CALLBACK test_aw_conversion_wndproc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam)
static LRESULT CALLBACK msgbox_hook_proc(INT code, WPARAM wParam, LPARAM lParam)
static INT_PTR CALLBACK test_aw_conversion_dlgprocA(HWND hdlg, UINT msg, WPARAM wparam, LPARAM lparam)
static INT_PTR CALLBACK getdlgitem_test_dialog_proc(HWND hdlg, UINT msg, WPARAM wparam, LPARAM lparam)
static void test_DisabledDialogTest(void)
static HWND g_hwndButton2
static INT_PTR CALLBACK test_aw_conversion_dlgproc2(HWND hdlg, UINT msg, WPARAM wparam, LPARAM lparam)
unsigned __int3264 UINT_PTR
#define WS_OVERLAPPEDWINDOW
#define WS_EX_NOPARENTNOTIFY
#define WS_EX_DLGMODALFRAME
#define WS_EX_TRANSPARENT
WCHAR lfFaceName[LF_FACESIZE]
VOID WINAPI DECLSPEC_HOTPATCH Sleep(IN DWORD dwMilliseconds)
TW_UINT32 TW_UINT16 TW_UINT16 MSG
#define FIELD_OFFSET(t, f)
UINT WINAPI GetDlgItemTextA(HWND hDlg, int nIDDlgItem, LPSTR lpString, int nMaxCount)
int WINAPI GetWindowTextA(HWND hWnd, LPSTR lpString, int nMaxCount)
int WINAPI GetWindowTextW(HWND hWnd, LPWSTR lpString, int nMaxCount)
DWORD WINAPI GetLastError(void)
DWORD WINAPI GetCurrentThreadId(void)
#define ERROR_INVALID_WINDOW_HANDLE
#define ERROR_RESOURCE_NAME_NOT_FOUND
#define ERROR_CANNOT_FIND_WND_CLASS
int WINAPI GetObjectW(_In_ HANDLE h, _In_ int c, _Out_writes_bytes_opt_(c) LPVOID pv)
HWND WINAPI GetFocus(void)
HWND WINAPI SetCapture(_In_ HWND hWnd)
LRESULT WINAPI DispatchMessageA(_In_ const MSG *)
#define SetWindowLongPtrA
BOOL WINAPI SetWindowTextA(_In_ HWND, _In_opt_ LPCSTR)
#define GetWindowLongPtrW
BOOL WINAPI TranslateMessage(_In_ const MSG *)
HWND WINAPI CreateWindowExA(_In_ DWORD dwExStyle, _In_opt_ LPCSTR lpClassName, _In_opt_ LPCSTR 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)
BOOL WINAPI ShowWindow(_In_ HWND, _In_ int)
HANDLE WINAPI GetPropA(_In_ HWND, _In_ LPCSTR)
LRESULT WINAPI DefWindowProcW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
LONG WINAPI GetWindowLongA(_In_ HWND, _In_ int)
HWND WINAPI CreateDialogParamA(_In_opt_ HINSTANCE, _In_ LPCSTR, _In_opt_ HWND, _In_opt_ DLGPROC, _In_ LPARAM)
LRESULT WINAPI DefWindowProcA(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
BOOL WINAPI SetPropA(_In_ HWND, _In_ LPCSTR, _In_opt_ HANDLE)
BOOL WINAPI PostMessageW(_In_opt_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
LRESULT WINAPI DefDlgProcW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
#define WS_EX_RIGHTSCROLLBAR
#define CreateWindowA(a, b, c, d, e, f, g, h, i, j, k)
LONG WINAPI SetWindowLongA(_In_ HWND, _In_ int, _In_ LONG)
BOOL WINAPI SetWindowPos(_In_ HWND, _In_opt_ HWND, _In_ int, _In_ int, _In_ int, _In_ int, _In_ UINT)
#define WS_EX_CONTROLPARENT
__analysis_noreturn void WINAPI PostQuitMessage(_In_ int)
int WINAPI MessageBoxA(_In_opt_ HWND hWnd, _In_opt_ LPCSTR lpText, _In_opt_ LPCSTR lpCaption, _In_ UINT uType)
LONG WINAPI GetWindowLongW(_In_ HWND, _In_ int)
HWND WINAPI GetTopWindow(_In_opt_ HWND)
ATOM WINAPI RegisterClassW(_In_ CONST WNDCLASSW *)
LRESULT WINAPI SendMessageA(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
HWND WINAPI GetCapture(void)
#define GetWindowLongPtrA
LRESULT WINAPI DefDlgProcA(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
#define DLGC_DEFPUSHBUTTON
HWND WINAPI GetNextDlgTabItem(_In_ HWND, _In_opt_ HWND, _In_ BOOL)
HWND WINAPI GetDlgItem(_In_opt_ HWND, _In_ int)
UINT_PTR WINAPI SetTimer(_In_opt_ HWND, _In_ UINT_PTR, _In_ UINT, _In_opt_ TIMERPROC)
#define DialogBoxA(i, t, p, f)
HHOOK WINAPI SetWindowsHookExA(_In_ int, _In_ HOOKPROC, _In_opt_ HINSTANCE, _In_ DWORD)
LRESULT WINAPI SendDlgItemMessageW(_In_ HWND, _In_ int, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
BOOL WINAPI SetWindowTextW(_In_ HWND, _In_opt_ LPCWSTR)
BOOL WINAPI IsWindowUnicode(_In_ HWND)
HWND WINAPI GetNextDlgGroupItem(_In_ HWND, _In_opt_ HWND, _In_ BOOL)
BOOL WINAPI GetClientRect(_In_ HWND, _Out_ LPRECT)
ATOM WINAPI RegisterClassA(_In_ CONST WNDCLASSA *)
#define MAKELRESULT(l, h)
HWND WINAPI SetFocus(_In_opt_ HWND)
BOOL WINAPI UnhookWindowsHookEx(_In_ HHOOK)
BOOL WINAPI IsDialogMessageA(_In_ HWND, _In_ LPMSG)
HWND WINAPI CreateDialogIndirectParamA(_In_opt_ HINSTANCE, _In_ LPCDLGTEMPLATE, _In_opt_ HWND, _In_opt_ DLGPROC, _In_ LPARAM)
BOOL WINAPI EnableWindow(_In_ HWND, _In_ BOOL)
#define CreateWindowW(a, b, c, d, e, f, g, h, i, j, k)
BOOL WINAPI GetClassInfoA(_In_opt_ HINSTANCE, _In_ LPCSTR, _Out_ LPWNDCLASSA)
BOOL WINAPI SystemParametersInfoW(_In_ UINT uiAction, _In_ UINT uiParam, _Inout_opt_ PVOID pvParam, _In_ UINT fWinIni)
LRESULT WINAPI CallNextHookEx(_In_opt_ HHOOK, _In_ int, _In_ WPARAM, _In_ LPARAM)
LRESULT(CALLBACK * WNDPROC)(HWND, UINT, WPARAM, LPARAM)
#define SetWindowLongPtrW
LRESULT WINAPI CallWindowProcW(_In_ WNDPROC, _In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
BOOL WINAPI GetMessageA(_Out_ LPMSG, _In_opt_ HWND, _In_ UINT, _In_ UINT)
LRESULT WINAPI SendDlgItemMessageA(_In_ HWND, _In_ int, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
BOOL WINAPI DestroyWindow(_In_ HWND)
BOOL WINAPI PostMessageA(_In_opt_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
HWND WINAPI CreateDialogIndirectParamW(_In_opt_ HINSTANCE, _In_ LPCDLGTEMPLATE, _In_opt_ HWND, _In_opt_ DLGPROC, _In_ LPARAM)
LRESULT WINAPI CallWindowProcA(_In_ WNDPROC, _In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
INT_PTR WINAPI DialogBoxParamA(_In_opt_ HINSTANCE, _In_ LPCSTR, _In_opt_ HWND, _In_opt_ DLGPROC, _In_ LPARAM)
LRESULT WINAPI SendMessageW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
HCURSOR WINAPI LoadCursorA(_In_opt_ HINSTANCE, _In_ LPCSTR)
INT_PTR WINAPI DialogBoxParamW(_In_opt_ HINSTANCE, _In_ LPCWSTR, _In_opt_ HWND, _In_opt_ DLGPROC, _In_ LPARAM)
BOOL WINAPI EndDialog(_In_ HWND, _In_ INT_PTR)