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
0cbee494
Commit
0cbee494
authored
Jun 25, 2007
by
Lei Zhang
Committed by
Alexandre Julliard
Jun 26, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: Reduce duplicate code between PropertySheetA/W.
parent
2f0ca64d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
29 deletions
+27
-29
propsheet.c
dlls/comctl32/propsheet.c
+27
-29
No files found.
dlls/comctl32/propsheet.c
View file @
0cbee494
...
...
@@ -2780,6 +2780,31 @@ static INT do_loop(const PropSheetInfo *psInfo)
}
/******************************************************************************
* PROPSHEET_PropertySheet
*
* Common code between PropertySheetA/W
*/
static
INT_PTR
PROPSHEET_PropertySheet
(
PropSheetInfo
*
psInfo
,
BOOL
unicode
)
{
INT_PTR
bRet
=
0
;
if
(
psInfo
->
active_page
>=
psInfo
->
nPages
)
psInfo
->
active_page
=
0
;
TRACE
(
"startpage: %d of %d pages
\n
"
,
psInfo
->
active_page
,
psInfo
->
nPages
);
psInfo
->
unicode
=
unicode
;
psInfo
->
ended
=
FALSE
;
bRet
=
PROPSHEET_CreateDialog
(
psInfo
);
if
(
!
psInfo
->
isModeless
)
{
HWND
parent
=
GetParent
(
psInfo
->
hwnd
);
if
(
parent
)
EnableWindow
(
parent
,
FALSE
);
bRet
=
do_loop
(
psInfo
);
if
(
parent
)
EnableWindow
(
parent
,
TRUE
);
}
return
bRet
;
}
/******************************************************************************
* PropertySheet (COMCTL32.@)
* PropertySheetA (COMCTL32.@)
*
...
...
@@ -2794,7 +2819,6 @@ static INT do_loop(const PropSheetInfo *psInfo)
*/
INT_PTR
WINAPI
PropertySheetA
(
LPCPROPSHEETHEADERA
lppsh
)
{
INT_PTR
bRet
=
0
;
PropSheetInfo
*
psInfo
=
(
PropSheetInfo
*
)
GlobalAlloc
(
GPTR
,
sizeof
(
PropSheetInfo
));
UINT
i
,
n
;
...
...
@@ -2828,22 +2852,7 @@ INT_PTR WINAPI PropertySheetA(LPCPROPSHEETHEADERA lppsh)
}
}
if
(
psInfo
->
active_page
>=
psInfo
->
nPages
)
psInfo
->
active_page
=
0
;
TRACE
(
"startpage: %d of %d pages
\n
"
,
psInfo
->
active_page
,
psInfo
->
nPages
);
psInfo
->
unicode
=
FALSE
;
psInfo
->
ended
=
FALSE
;
bRet
=
PROPSHEET_CreateDialog
(
psInfo
);
if
(
!
psInfo
->
isModeless
)
{
HWND
parent
=
GetParent
(
psInfo
->
hwnd
);
if
(
parent
)
EnableWindow
(
parent
,
FALSE
);
bRet
=
do_loop
(
psInfo
);
if
(
parent
)
EnableWindow
(
parent
,
TRUE
);
}
return
bRet
;
return
PROPSHEET_PropertySheet
(
psInfo
,
FALSE
);
}
/******************************************************************************
...
...
@@ -2853,7 +2862,6 @@ INT_PTR WINAPI PropertySheetA(LPCPROPSHEETHEADERA lppsh)
*/
INT_PTR
WINAPI
PropertySheetW
(
LPCPROPSHEETHEADERW
lppsh
)
{
INT_PTR
bRet
=
0
;
PropSheetInfo
*
psInfo
=
(
PropSheetInfo
*
)
GlobalAlloc
(
GPTR
,
sizeof
(
PropSheetInfo
));
UINT
i
,
n
;
...
...
@@ -2887,17 +2895,7 @@ INT_PTR WINAPI PropertySheetW(LPCPROPSHEETHEADERW lppsh)
}
}
if
(
psInfo
->
active_page
>=
psInfo
->
nPages
)
psInfo
->
active_page
=
0
;
TRACE
(
"startpage: %d of %d pages
\n
"
,
psInfo
->
active_page
,
psInfo
->
nPages
);
psInfo
->
unicode
=
TRUE
;
psInfo
->
ended
=
FALSE
;
bRet
=
PROPSHEET_CreateDialog
(
psInfo
);
if
(
!
psInfo
->
isModeless
)
bRet
=
do_loop
(
psInfo
);
return
bRet
;
return
PROPSHEET_PropertySheet
(
psInfo
,
TRUE
);
}
static
LPWSTR
load_string
(
HINSTANCE
instance
,
LPCWSTR
str
)
...
...
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