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
ba51a6c9
Commit
ba51a6c9
authored
Jan 07, 2010
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jan 08, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32/tests: Forward test proc to default dialog procedure instead of window's one.
parent
0c437f55
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
12 deletions
+8
-12
dialog.c
dlls/user32/tests/dialog.c
+8
-12
No files found.
dlls/user32/tests/dialog.c
View file @
ba51a6c9
...
...
@@ -464,7 +464,6 @@ static BOOL OnTestDlgCreate (HWND hwnd, LPCREATESTRUCT lpcs)
static
LRESULT
CALLBACK
main_window_procA
(
HWND
hwnd
,
UINT
uiMsg
,
WPARAM
wParam
,
LPARAM
lParam
)
{
LRESULT
result
;
switch
(
uiMsg
)
{
/* Add blank case statements for these to ensure we don't use them
...
...
@@ -485,20 +484,19 @@ static LRESULT CALLBACK main_window_procA (HWND hwnd, UINT uiMsg, WPARAM wParam,
break
;
}
result
=
DefWindowProcA
(
hwnd
,
uiMsg
,
wParam
,
lParam
);
return
result
;
return
DefWindowProcA
(
hwnd
,
uiMsg
,
wParam
,
lParam
);
}
static
LRESULT
CALLBACK
disabled_test_proc
(
HWND
hwnd
,
UINT
uiMsg
,
WPARAM
wParam
,
LPARAM
lParam
)
{
LRESULT
result
;
DWORD
dw
;
HWND
hwndOk
;
switch
(
uiMsg
)
{
case
WM_INITDIALOG
:
{
DWORD
dw
;
HWND
hwndOk
;
dw
=
SendMessage
(
hwnd
,
DM_GETDEFID
,
0
,
0
);
assert
(
DC_HASDEFID
==
HIWORD
(
dw
));
hwndOk
=
GetDlgItem
(
hwnd
,
LOWORD
(
dw
));
...
...
@@ -508,6 +506,7 @@ static LRESULT CALLBACK disabled_test_proc (HWND hwnd, UINT uiMsg,
PostMessage
(
hwnd
,
WM_KEYDOWN
,
VK_RETURN
,
0
);
PostMessage
(
hwnd
,
WM_COMMAND
,
IDCANCEL
,
0
);
break
;
}
case
WM_COMMAND
:
if
(
wParam
==
IDOK
)
{
...
...
@@ -523,14 +522,12 @@ static LRESULT CALLBACK disabled_test_proc (HWND hwnd, UINT uiMsg,
break
;
}
result
=
DefWindowProcA
(
hwnd
,
uiMsg
,
wParam
,
lParam
);
return
result
;
return
DefWindowProcA
(
hwnd
,
uiMsg
,
wParam
,
lParam
);
}
static
LRESULT
CALLBACK
testDlgWinProc
(
HWND
hwnd
,
UINT
uiMsg
,
WPARAM
wParam
,
LPARAM
lParam
)
{
LRESULT
result
;
switch
(
uiMsg
)
{
/* Add blank case statements for these to ensure we don't use them
...
...
@@ -544,8 +541,7 @@ static LRESULT CALLBACK testDlgWinProc (HWND hwnd, UINT uiMsg, WPARAM wParam,
(
LPCREATESTRUCTA
)
lParam
)
?
0
:
(
LRESULT
)
-
1
);
}
result
=
DefWindowProcA
(
hwnd
,
uiMsg
,
wParam
,
lParam
);
return
result
;
return
DefDlgProcA
(
hwnd
,
uiMsg
,
wParam
,
lParam
);
}
static
BOOL
RegisterWindowClasses
(
void
)
...
...
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