Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
f1f1c505
Commit
f1f1c505
authored
Aug 25, 2009
by
Sergey Khodych
Committed by
Alexandre Julliard
Aug 26, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Use IDOK as default identifier in a template.
parent
205a7f7f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
1 deletion
+24
-1
dialog.c
dlls/user32/dialog.c
+1
-1
dialog.c
dlls/user32/tests/dialog.c
+16
-0
resource.rc
dlls/user32/tests/resource.rc
+7
-0
No files found.
dlls/user32/dialog.c
View file @
f1f1c505
...
...
@@ -674,7 +674,7 @@ static HWND DIALOG_CreateIndirect( HINSTANCE hInst, LPCVOID dlgTemplate,
dlgInfo
->
hMenu
=
hMenu
;
dlgInfo
->
xBaseUnit
=
xBaseUnit
;
dlgInfo
->
yBaseUnit
=
yBaseUnit
;
dlgInfo
->
idResult
=
0
;
dlgInfo
->
idResult
=
IDOK
;
dlgInfo
->
flags
=
flags
;
dlgInfo
->
hDialogHeap
=
0
;
...
...
dlls/user32/tests/dialog.c
View file @
f1f1c505
...
...
@@ -930,6 +930,19 @@ static INT_PTR CALLBACK DestroyOnCloseDlgWinProc (HWND hDlg, UINT uiMsg,
return
FALSE
;
}
static
INT_PTR
CALLBACK
TestDefButtonDlgProc
(
HWND
hDlg
,
UINT
uiMsg
,
WPARAM
wParam
,
LPARAM
lParam
)
{
switch
(
uiMsg
)
{
case
WM_INITDIALOG
:
EndDialog
(
hDlg
,
LOWORD
(
SendMessage
(
hDlg
,
DM_GETDEFID
,
0
,
0
)));
return
TRUE
;
}
return
FALSE
;
}
static
void
test_DialogBoxParamA
(
void
)
{
INT_PTR
ret
;
...
...
@@ -968,6 +981,9 @@ static void test_DialogBoxParamA(void)
ok
(
GetLastError
()
==
ERROR_INVALID_WINDOW_HANDLE
||
broken
(
GetLastError
()
==
0xdeadbeef
),
"got %d, expected ERROR_INVALID_WINDOW_HANDLE
\n
"
,
GetLastError
());
ret
=
DialogBoxParamA
(
GetModuleHandle
(
NULL
),
"TEST_EMPTY_DIALOG"
,
0
,
TestDefButtonDlgProc
,
0
);
ok
(
ret
==
IDOK
,
"Expected IDOK
\n
"
);
}
static
void
test_DisabledDialogTest
(
void
)
...
...
dlls/user32/tests/resource.rc
View file @
f1f1c505
...
...
@@ -98,6 +98,13 @@ BEGIN
PUSHBUTTON "Cancel",IDCANCEL,129,24,50,14
END
TEST_EMPTY_DIALOG DIALOG DISCARDABLE 0, 0, 186, 95
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Dialog"
FONT 8, "MS Sans Serif"
BEGIN
END
MULTI_EDIT_DIALOG DIALOG DISCARDABLE 0, 0, 160, 75
STYLE WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_MINIMIZEBOX | DS_CENTER
CAPTION "Multiple Edit Test"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment