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
a4b73d43
Commit
a4b73d43
authored
Jun 15, 2000
by
Sheri Steeves
Committed by
Alexandre Julliard
Jun 15, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Check again for GetNextDlgTabItem after return from WM_INITDIALOG
message in dialog creation.
parent
ac3e8164
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
5 deletions
+13
-5
dialog.c
windows/dialog.c
+13
-5
No files found.
windows/dialog.c
View file @
a4b73d43
...
...
@@ -792,14 +792,22 @@ HWND DIALOG_CreateIndirect( HINSTANCE hInst, LPCSTR dlgTemplate,
hwndPreInitFocus
=
GetFocus
();
if
(
SendMessageA
(
hwnd
,
WM_INITDIALOG
,
(
WPARAM
)
dlgInfo
->
hwndFocus
,
param
))
{
/* check where the focus is again, some controls status might have changed in
WM_INITDIALOG */
dlgInfo
->
hwndFocus
=
GetNextDlgTabItem
(
hwnd
,
0
,
FALSE
);
SetFocus
(
dlgInfo
->
hwndFocus
);
else
{
/* If the dlgproc has returned FALSE (indicating handling of keyboard focus)
but the focus has not changed, set the focus where we expect it. */
}
else
{
/* If the dlgproc has returned FALSE (indicating handling of keyboard focus)
but the focus has not changed, set the focus where we expect it. */
if
(
(
wndPtr
->
dwStyle
&
WS_VISIBLE
)
&&
(
GetFocus
()
==
hwndPreInitFocus
)
)
{
dlgInfo
->
hwndFocus
=
GetNextDlgTabItem
(
hwnd
,
0
,
FALSE
);
SetFocus
(
dlgInfo
->
hwndFocus
);
}
}
}
if
(
template
.
style
&
WS_VISIBLE
&&
!
(
wndPtr
->
dwStyle
&
WS_VISIBLE
))
{
...
...
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