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
67c8cb28
Commit
67c8cb28
authored
Sep 20, 2004
by
Filip Navara
Committed by
Alexandre Julliard
Sep 20, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Implement PSM_INDEXTOID, PSM_INDEXTOPAGE and PSM_PAGETOINDEX messages.
- Partially implement the PSH_WIZARDCONTEXTHELP and PSH_NOCONTEXTHELP styles.
parent
39bbcb48
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
69 additions
and
30 deletions
+69
-30
comctl_Cn.rc
dlls/comctl32/comctl_Cn.rc
+1
-1
comctl_Cs.rc
dlls/comctl32/comctl_Cs.rc
+1
-1
comctl_De.rc
dlls/comctl32/comctl_De.rc
+1
-1
comctl_En.rc
dlls/comctl32/comctl_En.rc
+1
-1
comctl_Es.rc
dlls/comctl32/comctl_Es.rc
+1
-1
comctl_Fr.rc
dlls/comctl32/comctl_Fr.rc
+1
-1
comctl_It.rc
dlls/comctl32/comctl_It.rc
+1
-1
comctl_Ja.rc
dlls/comctl32/comctl_Ja.rc
+1
-1
comctl_Ko.rc
dlls/comctl32/comctl_Ko.rc
+1
-1
comctl_Nl.rc
dlls/comctl32/comctl_Nl.rc
+1
-1
comctl_Pl.rc
dlls/comctl32/comctl_Pl.rc
+1
-1
comctl_Pt.rc
dlls/comctl32/comctl_Pt.rc
+1
-1
comctl_Ru.rc
dlls/comctl32/comctl_Ru.rc
+1
-1
comctl_Si.rc
dlls/comctl32/comctl_Si.rc
+1
-1
comctl_Th.rc
dlls/comctl32/comctl_Th.rc
+1
-1
comctl_Uk.rc
dlls/comctl32/comctl_Uk.rc
+1
-1
propsheet.c
dlls/comctl32/propsheet.c
+53
-14
No files found.
dlls/comctl32/comctl_Cn.rc
View file @
67c8cb28
...
...
@@ -20,7 +20,7 @@ LANGUAGE LANG_CHINESE, SUBLANG_CHINESE_SIMPLIFIED
#pragma code_page(936)
IDD_PROPSHEET DIALOG DISCARDABLE 0, 0, 220, 140
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_VISIBLE
STYLE DS_
CONTEXTHELP | DS_
MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_VISIBLE
CAPTION "属性 "
FONT 8, "MS Shell Dlg"
BEGIN
...
...
dlls/comctl32/comctl_Cs.rc
View file @
67c8cb28
...
...
@@ -22,7 +22,7 @@
LANGUAGE LANG_CZECH, SUBLANG_DEFAULT
IDD_PROPSHEET DIALOG DISCARDABLE 0, 0, 220, 140
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_VISIBLE
STYLE DS_
CONTEXTHELP | DS_
MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_VISIBLE
CAPTION "Vlastnosti "
FONT 8, "MS Shell Dlg"
BEGIN
...
...
dlls/comctl32/comctl_De.rc
View file @
67c8cb28
...
...
@@ -40,7 +40,7 @@ STRINGTABLE DISCARDABLE
}
IDD_PROPSHEET DIALOG DISCARDABLE 0, 0, 220, 140
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_VISIBLE
STYLE DS_
CONTEXTHELP | DS_
MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_VISIBLE
CAPTION "Eigenschaften fr "
FONT 8, "MS Shell Dlg"
BEGIN
...
...
dlls/comctl32/comctl_En.rc
View file @
67c8cb28
...
...
@@ -19,7 +19,7 @@
LANGUAGE LANG_ENGLISH, SUBLANG_DEFAULT
IDD_PROPSHEET DIALOG DISCARDABLE 0, 0, 220, 140
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_VISIBLE
STYLE DS_
CONTEXTHELP | DS_
MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_VISIBLE
CAPTION "Properties for "
FONT 8, "MS Shell Dlg"
BEGIN
...
...
dlls/comctl32/comctl_Es.rc
View file @
67c8cb28
...
...
@@ -19,7 +19,7 @@
LANGUAGE LANG_SPANISH, SUBLANG_DEFAULT
IDD_PROPSHEET DIALOG DISCARDABLE 0, 0, 220, 140
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_VISIBLE
STYLE DS_
CONTEXTHELP | DS_
MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_VISIBLE
CAPTION "Propiedades de "
FONT 8, "MS Shell Dlg"
BEGIN
...
...
dlls/comctl32/comctl_Fr.rc
View file @
67c8cb28
...
...
@@ -23,7 +23,7 @@
LANGUAGE LANG_FRENCH, SUBLANG_NEUTRAL
IDD_PROPSHEET DIALOG DISCARDABLE 0, 0, 220, 140
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_VISIBLE
STYLE DS_
CONTEXTHELP | DS_
MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_VISIBLE
CAPTION "Proprits pour "
FONT 8, "MS Shell Dlg"
BEGIN
...
...
dlls/comctl32/comctl_It.rc
View file @
67c8cb28
...
...
@@ -20,7 +20,7 @@
LANGUAGE LANG_ITALIAN, SUBLANG_DEFAULT
IDD_PROPSHEET DIALOG DISCARDABLE 0, 0, 220, 140
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_VISIBLE
STYLE DS_
CONTEXTHELP | DS_
MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_VISIBLE
CAPTION "Propriet per "
FONT 8, "MS Shell Dlg"
BEGIN
...
...
dlls/comctl32/comctl_Ja.rc
View file @
67c8cb28
...
...
@@ -19,7 +19,7 @@
LANGUAGE LANG_JAPANESE, SUBLANG_DEFAULT
IDD_PROPSHEET DIALOG DISCARDABLE 0, 0, 220, 140
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_VISIBLE
STYLE DS_
CONTEXTHELP | DS_
MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_VISIBLE
CAPTION "Properties for "
FONT 9, "MS UI Gothic"
BEGIN
...
...
dlls/comctl32/comctl_Ko.rc
View file @
67c8cb28
...
...
@@ -19,7 +19,7 @@
LANGUAGE LANG_KOREAN, SUBLANG_DEFAULT
IDD_PROPSHEET DIALOG DISCARDABLE 0, 0, 220, 140
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_VISIBLE
STYLE DS_
CONTEXTHELP | DS_
MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_VISIBLE
CAPTION "Properties for "
FONT 9, "MS Shell Dlg"
BEGIN
...
...
dlls/comctl32/comctl_Nl.rc
View file @
67c8cb28
...
...
@@ -21,7 +21,7 @@
LANGUAGE LANG_DUTCH, SUBLANG_DEFAULT
IDD_PROPSHEET DIALOG DISCARDABLE 0, 0, 220, 140
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_VISIBLE
STYLE DS_
CONTEXTHELP | DS_
MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_VISIBLE
CAPTION "Eigenschappen van "
FONT 8, "MS Shell Dlg"
BEGIN
...
...
dlls/comctl32/comctl_Pl.rc
View file @
67c8cb28
...
...
@@ -20,7 +20,7 @@
LANGUAGE LANG_POLISH, SUBLANG_DEFAULT
IDD_PROPSHEET DIALOG DISCARDABLE 0, 0, 220, 140
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_VISIBLE
STYLE DS_
CONTEXTHELP | DS_
MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_VISIBLE
CAPTION "Waciwoci "
FONT 8, "MS Shell Dlg"
BEGIN
...
...
dlls/comctl32/comctl_Pt.rc
View file @
67c8cb28
...
...
@@ -19,7 +19,7 @@
LANGUAGE LANG_PORTUGUESE, SUBLANG_DEFAULT
IDD_PROPSHEET DIALOG DISCARDABLE 0, 0, 220, 140
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_VISIBLE
STYLE DS_
CONTEXTHELP | DS_
MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_VISIBLE
CAPTION "Propriedades para "
FONT 8, "MS Shell Dlg"
BEGIN
...
...
dlls/comctl32/comctl_Ru.rc
View file @
67c8cb28
...
...
@@ -21,7 +21,7 @@
LANGUAGE LANG_RUSSIAN, SUBLANG_DEFAULT
IDD_PROPSHEET DIALOG DISCARDABLE 0, 0, 220, 140
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_VISIBLE
STYLE DS_
CONTEXTHELP | DS_
MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_VISIBLE
CAPTION " "
FONT 8, "MS Shell Dlg"
BEGIN
...
...
dlls/comctl32/comctl_Si.rc
View file @
67c8cb28
...
...
@@ -19,7 +19,7 @@
LANGUAGE LANG_SLOVENIAN, SUBLANG_DEFAULT
IDD_PROPSHEET DIALOG DISCARDABLE 0, 0, 220, 140
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_VISIBLE
STYLE DS_
CONTEXTHELP | DS_
MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_VISIBLE
CAPTION "Lastnosti"
FONT 8, "MS Shell Dlg"
BEGIN
...
...
dlls/comctl32/comctl_Th.rc
View file @
67c8cb28
...
...
@@ -19,7 +19,7 @@
LANGUAGE LANG_THAI, SUBLANG_DEFAULT
IDD_PROPSHEET DIALOG DISCARDABLE 0, 0, 220, 140
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_VISIBLE
STYLE DS_
CONTEXTHELP | DS_
MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_VISIBLE
CAPTION "سѵԢͧ "
FONT 8, "MS Shell Dlg"
BEGIN
...
...
dlls/comctl32/comctl_Uk.rc
View file @
67c8cb28
...
...
@@ -21,7 +21,7 @@
LANGUAGE LANG_UKRAINIAN, SUBLANG_DEFAULT
IDD_PROPSHEET DIALOG DISCARDABLE 0, 0, 220, 140
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_VISIBLE
STYLE DS_
CONTEXTHELP | DS_
MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_VISIBLE
CAPTION " "
FONT 8, "MS Shell Dlg"
BEGIN
...
...
dlls/comctl32/propsheet.c
View file @
67c8cb28
...
...
@@ -34,13 +34,12 @@
* - Messages:
* o PSM_GETRESULT
* o PSM_IDTOINDEX
* o PSM_INDEXTOID
* o PSM_INDEXTOPAGE
* o PSM_INSERTPAGE
* o PSM_PAGETOINDEX
* o PSM_RECALCPAGESIZES
* o PSM_SETHEADERSUBTITLE
* o PSM_SETHEADERTITLE
* o WM_HELP
* o WM_CONTEXTMENU
* - Notifications:
* o PSN_GETOBJECT
* o PSN_QUERYINITIALFOCUS
...
...
@@ -48,10 +47,8 @@
* - Styles:
* o PSH_WIZARDHASFINISH
* o PSH_RTLREADING
* o PSH_WIZARDCONTEXTHELP
* o PSH_STRETCHWATERMARK
* o PSH_USEPAGELANG
* o PSH_NOCONTEXTHELP
* o PSH_USEPSTARTPAGE
* - Page styles:
* o PSP_USEFUSIONCONTEXT
...
...
@@ -237,18 +234,14 @@ static VOID PROPSHEET_UnImplementedFlags(DWORD dwFlags)
* unhandled header flags:
* PSH_WIZARDHASFINISH 0x00000010
* PSH_RTLREADING 0x00000800
* PSH_WIZARDCONTEXTHELP 0x00001000
* PSH_STRETCHWATERMARK 0x00040000
* PSH_USEPAGELANG 0x00200000
* PSH_NOCONTEXTHELP 0x02000000 also not in .h
*/
add_flag
(
PSH_WIZARDHASFINISH
);
add_flag
(
PSH_RTLREADING
);
add_flag
(
PSH_WIZARDCONTEXTHELP
);
add_flag
(
PSH_STRETCHWATERMARK
);
add_flag
(
PSH_USEPAGELANG
);
add_flag
(
PSH_NOCONTEXTHELP
);
if
(
string
[
0
]
!=
'\0'
)
FIXME
(
"%s
\n
"
,
string
);
}
...
...
@@ -689,9 +682,29 @@ int PROPSHEET_CreateDialog(PropSheetInfo* psInfo)
memcpy
(
temp
,
template
,
resSize
);
if
(
psInfo
->
ppshheader
.
dwFlags
&
PSH_NOCONTEXTHELP
)
{
if
(((
MyDLGTEMPLATEEX
*
)
temp
)
->
signature
==
0xFFFF
)
((
MyDLGTEMPLATEEX
*
)
temp
)
->
style
&=
~
DS_CONTEXTHELP
;
else
((
DLGTEMPLATE
*
)
temp
)
->
style
&=
~
DS_CONTEXTHELP
;
}
if
((
psInfo
->
ppshheader
.
dwFlags
&
INTRNL_ANY_WIZARD
)
&&
(
psInfo
->
ppshheader
.
dwFlags
&
PSH_WIZARDCONTEXTHELP
))
{
if
(((
MyDLGTEMPLATEEX
*
)
temp
)
->
signature
==
0xFFFF
)
((
MyDLGTEMPLATEEX
*
)
temp
)
->
style
|=
DS_CONTEXTHELP
;
else
((
DLGTEMPLATE
*
)
temp
)
->
style
|=
DS_CONTEXTHELP
;
}
if
(
psInfo
->
useCallback
)
(
*
(
psInfo
->
ppshheader
.
pfnCallback
))(
0
,
PSCB_PRECREATE
,
(
LPARAM
)
temp
);
/* NOTE: MSDN states "Returns a positive value if successful, or -1
* otherwise for modal property sheets.", but this is wrong. The
* actual return value is either TRUE (success), FALSE (cancel) or
* -1 (error). */
if
(
psInfo
->
unicode
)
{
if
(
!
(
psInfo
->
ppshheader
.
dwFlags
&
PSH_MODELESS
))
...
...
@@ -2568,7 +2581,16 @@ static LRESULT PROPSHEET_IndexToHwnd(HWND hwndDlg, int iPageIndex)
*/
static
LRESULT
PROPSHEET_PageToIndex
(
HWND
hwndDlg
,
HPROPSHEETPAGE
hPage
)
{
FIXME
(
"(%p, %p): stub
\n
"
,
hwndDlg
,
hPage
);
int
index
;
PropSheetInfo
*
psInfo
=
(
PropSheetInfo
*
)
GetPropW
(
hwndDlg
,
PropSheetInfoStr
);
TRACE
(
"(%p, %p)
\n
"
,
hwndDlg
,
hPage
);
for
(
index
=
0
;
index
<
psInfo
->
nPages
;
index
++
)
if
(
psInfo
->
proppage
[
index
].
hpage
==
hPage
)
return
index
;
WARN
(
"%p not found
\n
"
,
hPage
);
return
-
1
;
}
...
...
@@ -2577,8 +2599,14 @@ static LRESULT PROPSHEET_PageToIndex(HWND hwndDlg, HPROPSHEETPAGE hPage)
*/
static
LRESULT
PROPSHEET_IndexToPage
(
HWND
hwndDlg
,
int
iPageIndex
)
{
FIXME
(
"(%p, %d): stub
\n
"
,
hwndDlg
,
iPageIndex
);
return
0
;
PropSheetInfo
*
psInfo
=
(
PropSheetInfo
*
)
GetPropW
(
hwndDlg
,
PropSheetInfoStr
);
TRACE
(
"(%p, %d)
\n
"
,
hwndDlg
,
iPageIndex
);
if
(
iPageIndex
<
0
||
iPageIndex
>=
psInfo
->
nPages
)
{
WARN
(
"%d out of range.
\n
"
,
iPageIndex
);
return
0
;
}
return
(
LRESULT
)
psInfo
->
proppage
[
iPageIndex
].
hpage
;
}
/******************************************************************************
...
...
@@ -2595,8 +2623,19 @@ static LRESULT PROPSHEET_IdToIndex(HWND hwndDlg, int iPageId)
*/
static
LRESULT
PROPSHEET_IndexToId
(
HWND
hwndDlg
,
int
iPageIndex
)
{
FIXME
(
"(%p, %d): stub
\n
"
,
hwndDlg
,
iPageIndex
);
return
0
;
PropSheetInfo
*
psInfo
=
(
PropSheetInfo
*
)
GetPropW
(
hwndDlg
,
PropSheetInfoStr
);
LPCPROPSHEETPAGEW
psp
;
TRACE
(
"(%p, %d)
\n
"
,
hwndDlg
,
iPageIndex
);
if
(
iPageIndex
<
0
||
iPageIndex
>=
psInfo
->
nPages
)
{
WARN
(
"%d out of range.
\n
"
,
iPageIndex
);
return
0
;
}
psp
=
(
LPCPROPSHEETPAGEW
)
psInfo
->
proppage
[
iPageIndex
].
hpage
;
if
(
psp
->
dwFlags
&
PSP_DLGINDIRECT
||
HIWORD
(
psp
->
u
.
pszTemplate
))
{
return
0
;
}
return
(
LRESULT
)
psp
->
u
.
pszTemplate
;
}
/******************************************************************************
...
...
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