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
a247e697
Commit
a247e697
authored
May 20, 2006
by
Robert Shearman
Committed by
Alexandre Julliard
May 22, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: Make sure to always have the default pushbutton for wizards as an enabled button.
parent
2682ff43
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
10 deletions
+11
-10
propsheet.c
dlls/comctl32/propsheet.c
+11
-10
No files found.
dlls/comctl32/propsheet.c
View file @
a247e697
...
...
@@ -2433,17 +2433,23 @@ static void PROPSHEET_SetWizButtons(HWND hwndDlg, DWORD dwFlags)
EnableWindow
(
hwndNext
,
FALSE
);
EnableWindow
(
hwndFinish
,
FALSE
);
/* set the default pushbutton to an enabled button */
if
(((
dwFlags
&
PSWIZB_FINISH
)
||
psInfo
->
hasFinish
)
&&
!
(
dwFlags
&
PSWIZB_DISABLEDFINISH
))
SendMessageW
(
hwndDlg
,
DM_SETDEFID
,
IDC_FINISH_BUTTON
,
0
);
else
if
(
dwFlags
&
PSWIZB_NEXT
)
SendMessageW
(
hwndDlg
,
DM_SETDEFID
,
IDC_NEXT_BUTTON
,
0
);
else
if
(
dwFlags
&
PSWIZB_BACK
)
SendMessageW
(
hwndDlg
,
DM_SETDEFID
,
IDC_BACK_BUTTON
,
0
);
else
SendMessageW
(
hwndDlg
,
DM_SETDEFID
,
IDCANCEL
,
0
);
if
(
dwFlags
&
PSWIZB_BACK
)
EnableWindow
(
hwndBack
,
TRUE
);
if
(
dwFlags
&
PSWIZB_NEXT
)
{
EnableWindow
(
hwndNext
,
TRUE
);
/* Set the Next button as the default pushbutton */
SendMessageW
(
hwndDlg
,
DM_SETDEFID
,
IDC_NEXT_BUTTON
,
0
);
}
if
(
!
psInfo
->
hasFinish
)
{
if
((
dwFlags
&
PSWIZB_FINISH
)
||
(
dwFlags
&
PSWIZB_DISABLEDFINISH
))
...
...
@@ -2455,12 +2461,7 @@ static void PROPSHEET_SetWizButtons(HWND hwndDlg, DWORD dwFlags)
ShowWindow
(
hwndFinish
,
SW_SHOW
);
if
(
!
(
dwFlags
&
PSWIZB_DISABLEDFINISH
))
{
EnableWindow
(
hwndFinish
,
TRUE
);
/* Set the Finish button as the default pushbutton */
SendMessageW
(
hwndDlg
,
DM_SETDEFID
,
IDC_FINISH_BUTTON
,
0
);
}
}
else
{
...
...
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