Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
2fbd839e
Commit
2fbd839e
authored
Mar 23, 2005
by
Dimitrie O. Paun
Committed by
Alexandre Julliard
Mar 23, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Complete unicodification of the propsheet common control.
parent
4904c8b5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
23 deletions
+22
-23
propsheet.c
dlls/comctl32/propsheet.c
+22
-23
No files found.
dlls/comctl32/propsheet.c
View file @
2fbd839e
...
@@ -951,7 +951,7 @@ static BOOL PROPSHEET_AdjustButtons(HWND hwndParent, PropSheetInfo* psInfo)
...
@@ -951,7 +951,7 @@ static BOOL PROPSHEET_AdjustButtons(HWND hwndParent, PropSheetInfo* psInfo)
SetWindowPos
(
hwndButton
,
0
,
x
,
y
,
0
,
0
,
SetWindowPos
(
hwndButton
,
0
,
x
,
y
,
0
,
0
,
SWP_NOSIZE
|
SWP_NOZORDER
|
SWP_NOACTIVATE
);
SWP_NOSIZE
|
SWP_NOZORDER
|
SWP_NOACTIVATE
);
SendMessage
A
(
hwndParent
,
DM_SETDEFID
,
IDOK
,
0
);
SendMessage
W
(
hwndParent
,
DM_SETDEFID
,
IDOK
,
0
);
/*
/*
...
@@ -1708,7 +1708,7 @@ static BOOL PROPSHEET_Next(HWND hwndDlg)
...
@@ -1708,7 +1708,7 @@ static BOOL PROPSHEET_Next(HWND hwndDlg)
hwndPage
=
psInfo
->
proppage
[
psInfo
->
active_page
].
hwndPage
;
hwndPage
=
psInfo
->
proppage
[
psInfo
->
active_page
].
hwndPage
;
msgResult
=
SendMessage
A
(
hwndPage
,
WM_NOTIFY
,
0
,
(
LPARAM
)
&
psn
);
msgResult
=
SendMessage
W
(
hwndPage
,
WM_NOTIFY
,
0
,
(
LPARAM
)
&
psn
);
if
(
msgResult
==
-
1
)
if
(
msgResult
==
-
1
)
return
FALSE
;
return
FALSE
;
else
if
(
msgResult
==
0
)
else
if
(
msgResult
==
0
)
...
@@ -1789,7 +1789,7 @@ static BOOL PROPSHEET_Apply(HWND hwndDlg, LPARAM lParam)
...
@@ -1789,7 +1789,7 @@ static BOOL PROPSHEET_Apply(HWND hwndDlg, LPARAM lParam)
hwndPage
=
psInfo
->
proppage
[
psInfo
->
active_page
].
hwndPage
;
hwndPage
=
psInfo
->
proppage
[
psInfo
->
active_page
].
hwndPage
;
if
(
SendMessage
A
(
hwndPage
,
WM_NOTIFY
,
0
,
(
LPARAM
)
&
psn
)
!=
FALSE
)
if
(
SendMessage
W
(
hwndPage
,
WM_NOTIFY
,
0
,
(
LPARAM
)
&
psn
)
!=
FALSE
)
return
FALSE
;
return
FALSE
;
/*
/*
...
@@ -1803,7 +1803,7 @@ static BOOL PROPSHEET_Apply(HWND hwndDlg, LPARAM lParam)
...
@@ -1803,7 +1803,7 @@ static BOOL PROPSHEET_Apply(HWND hwndDlg, LPARAM lParam)
hwndPage
=
psInfo
->
proppage
[
i
].
hwndPage
;
hwndPage
=
psInfo
->
proppage
[
i
].
hwndPage
;
if
(
hwndPage
)
if
(
hwndPage
)
{
{
switch
(
SendMessage
A
(
hwndPage
,
WM_NOTIFY
,
0
,
(
LPARAM
)
&
psn
))
switch
(
SendMessage
W
(
hwndPage
,
WM_NOTIFY
,
0
,
(
LPARAM
)
&
psn
))
{
{
case
PSNRET_INVALID
:
case
PSNRET_INVALID
:
PROPSHEET_ShowPage
(
hwndDlg
,
i
,
psInfo
);
PROPSHEET_ShowPage
(
hwndDlg
,
i
,
psInfo
);
...
@@ -1823,7 +1823,7 @@ static BOOL PROPSHEET_Apply(HWND hwndDlg, LPARAM lParam)
...
@@ -1823,7 +1823,7 @@ static BOOL PROPSHEET_Apply(HWND hwndDlg, LPARAM lParam)
psn
.
hdr
.
code
=
PSN_SETACTIVE
;
psn
.
hdr
.
code
=
PSN_SETACTIVE
;
psn
.
lParam
=
0
;
psn
.
lParam
=
0
;
hwndPage
=
psInfo
->
proppage
[
psInfo
->
active_page
].
hwndPage
;
hwndPage
=
psInfo
->
proppage
[
psInfo
->
active_page
].
hwndPage
;
SendMessage
A
(
hwndPage
,
WM_NOTIFY
,
0
,
(
LPARAM
)
&
psn
);
SendMessage
W
(
hwndPage
,
WM_NOTIFY
,
0
,
(
LPARAM
)
&
psn
);
}
}
return
TRUE
;
return
TRUE
;
...
@@ -1850,7 +1850,7 @@ static void PROPSHEET_Cancel(HWND hwndDlg, LPARAM lParam)
...
@@ -1850,7 +1850,7 @@ static void PROPSHEET_Cancel(HWND hwndDlg, LPARAM lParam)
psn
.
hdr
.
idFrom
=
0
;
psn
.
hdr
.
idFrom
=
0
;
psn
.
lParam
=
0
;
psn
.
lParam
=
0
;
if
(
SendMessage
A
(
hwndPage
,
WM_NOTIFY
,
0
,
(
LPARAM
)
&
psn
))
if
(
SendMessage
W
(
hwndPage
,
WM_NOTIFY
,
0
,
(
LPARAM
)
&
psn
))
return
;
return
;
psn
.
hdr
.
code
=
PSN_RESET
;
psn
.
hdr
.
code
=
PSN_RESET
;
...
@@ -1861,7 +1861,7 @@ static void PROPSHEET_Cancel(HWND hwndDlg, LPARAM lParam)
...
@@ -1861,7 +1861,7 @@ static void PROPSHEET_Cancel(HWND hwndDlg, LPARAM lParam)
hwndPage
=
psInfo
->
proppage
[
i
].
hwndPage
;
hwndPage
=
psInfo
->
proppage
[
i
].
hwndPage
;
if
(
hwndPage
)
if
(
hwndPage
)
SendMessage
A
(
hwndPage
,
WM_NOTIFY
,
0
,
(
LPARAM
)
&
psn
);
SendMessage
W
(
hwndPage
,
WM_NOTIFY
,
0
,
(
LPARAM
)
&
psn
);
}
}
if
(
psInfo
->
isModeless
)
if
(
psInfo
->
isModeless
)
...
@@ -1893,7 +1893,7 @@ static void PROPSHEET_Help(HWND hwndDlg)
...
@@ -1893,7 +1893,7 @@ static void PROPSHEET_Help(HWND hwndDlg)
psn
.
hdr
.
idFrom
=
0
;
psn
.
hdr
.
idFrom
=
0
;
psn
.
lParam
=
0
;
psn
.
lParam
=
0
;
SendMessage
A
(
hwndPage
,
WM_NOTIFY
,
0
,
(
LPARAM
)
&
psn
);
SendMessage
W
(
hwndPage
,
WM_NOTIFY
,
0
,
(
LPARAM
)
&
psn
);
}
}
/******************************************************************************
/******************************************************************************
...
@@ -2036,7 +2036,7 @@ static BOOL PROPSHEET_CanSetCurSel(HWND hwndDlg)
...
@@ -2036,7 +2036,7 @@ static BOOL PROPSHEET_CanSetCurSel(HWND hwndDlg)
psn
.
hdr
.
idFrom
=
0
;
psn
.
hdr
.
idFrom
=
0
;
psn
.
lParam
=
0
;
psn
.
lParam
=
0
;
res
=
!
SendMessage
A
(
hwndPage
,
WM_NOTIFY
,
0
,
(
LPARAM
)
&
psn
);
res
=
!
SendMessage
W
(
hwndPage
,
WM_NOTIFY
,
0
,
(
LPARAM
)
&
psn
);
end:
end:
TRACE
(
"<-- %d
\n
"
,
res
);
TRACE
(
"<-- %d
\n
"
,
res
);
...
@@ -2222,7 +2222,7 @@ static void PROPSHEET_SetFinishTextA(HWND hwndDlg, LPCSTR lpszText)
...
@@ -2222,7 +2222,7 @@ static void PROPSHEET_SetFinishTextA(HWND hwndDlg, LPCSTR lpszText)
EnableWindow
(
hwndButton
,
TRUE
);
EnableWindow
(
hwndButton
,
TRUE
);
/* Make it default pushbutton */
/* Make it default pushbutton */
SendMessage
A
(
hwndDlg
,
DM_SETDEFID
,
IDC_FINISH_BUTTON
,
0
);
SendMessage
W
(
hwndDlg
,
DM_SETDEFID
,
IDC_FINISH_BUTTON
,
0
);
/* Hide Back button */
/* Hide Back button */
hwndButton
=
GetDlgItem
(
hwndDlg
,
IDC_BACK_BUTTON
);
hwndButton
=
GetDlgItem
(
hwndDlg
,
IDC_BACK_BUTTON
);
...
@@ -2267,13 +2267,12 @@ static LRESULT PROPSHEET_QuerySiblings(HWND hwndDlg,
...
@@ -2267,13 +2267,12 @@ static LRESULT PROPSHEET_QuerySiblings(HWND hwndDlg,
int
i
=
0
;
int
i
=
0
;
HWND
hwndPage
;
HWND
hwndPage
;
LRESULT
msgResult
=
0
;
LRESULT
msgResult
=
0
;
PropSheetInfo
*
psInfo
=
(
PropSheetInfo
*
)
GetPropW
(
hwndDlg
,
PropSheetInfo
*
psInfo
=
(
PropSheetInfo
*
)
GetPropW
(
hwndDlg
,
PropSheetInfoStr
);
PropSheetInfoStr
);
while
((
i
<
psInfo
->
nPages
)
&&
(
msgResult
==
0
))
while
((
i
<
psInfo
->
nPages
)
&&
(
msgResult
==
0
))
{
{
hwndPage
=
psInfo
->
proppage
[
i
].
hwndPage
;
hwndPage
=
psInfo
->
proppage
[
i
].
hwndPage
;
msgResult
=
SendMessage
A
(
hwndPage
,
PSM_QUERYSIBLINGS
,
wParam
,
lParam
);
msgResult
=
SendMessage
W
(
hwndPage
,
PSM_QUERYSIBLINGS
,
wParam
,
lParam
);
i
++
;
i
++
;
}
}
...
@@ -2480,7 +2479,7 @@ static void PROPSHEET_SetWizButtons(HWND hwndDlg, DWORD dwFlags)
...
@@ -2480,7 +2479,7 @@ static void PROPSHEET_SetWizButtons(HWND hwndDlg, DWORD dwFlags)
EnableWindow
(
hwndNext
,
TRUE
);
EnableWindow
(
hwndNext
,
TRUE
);
/* Set the Next button as the default pushbutton */
/* Set the Next button as the default pushbutton */
SendMessage
A
(
hwndDlg
,
DM_SETDEFID
,
IDC_NEXT_BUTTON
,
0
);
SendMessage
W
(
hwndDlg
,
DM_SETDEFID
,
IDC_NEXT_BUTTON
,
0
);
}
}
if
((
dwFlags
&
PSWIZB_FINISH
)
||
(
dwFlags
&
PSWIZB_DISABLEDFINISH
))
if
((
dwFlags
&
PSWIZB_FINISH
)
||
(
dwFlags
&
PSWIZB_DISABLEDFINISH
))
...
@@ -2495,7 +2494,7 @@ static void PROPSHEET_SetWizButtons(HWND hwndDlg, DWORD dwFlags)
...
@@ -2495,7 +2494,7 @@ static void PROPSHEET_SetWizButtons(HWND hwndDlg, DWORD dwFlags)
EnableWindow
(
hwndFinish
,
TRUE
);
EnableWindow
(
hwndFinish
,
TRUE
);
/* Set the Finish button as the default pushbutton */
/* Set the Finish button as the default pushbutton */
SendMessage
A
(
hwndDlg
,
DM_SETDEFID
,
IDC_FINISH_BUTTON
,
0
);
SendMessage
W
(
hwndDlg
,
DM_SETDEFID
,
IDC_FINISH_BUTTON
,
0
);
}
}
}
}
...
@@ -2969,7 +2968,7 @@ static BOOL PROPSHEET_IsDialogMessage(HWND hwnd, LPMSG lpMsg)
...
@@ -2969,7 +2968,7 @@ static BOOL PROPSHEET_IsDialogMessage(HWND hwnd, LPMSG lpMsg)
if
(
lpMsg
->
message
==
WM_KEYDOWN
&&
(
GetKeyState
(
VK_CONTROL
)
&
0x8000
))
if
(
lpMsg
->
message
==
WM_KEYDOWN
&&
(
GetKeyState
(
VK_CONTROL
)
&
0x8000
))
{
{
int
new_page
=
0
;
int
new_page
=
0
;
INT
dlgCode
=
SendMessage
A
(
lpMsg
->
hwnd
,
WM_GETDLGCODE
,
0
,
(
LPARAM
)
lpMsg
);
INT
dlgCode
=
SendMessage
W
(
lpMsg
->
hwnd
,
WM_GETDLGCODE
,
0
,
(
LPARAM
)
lpMsg
);
if
(
!
(
dlgCode
&
DLGC_WANTMESSAGE
))
if
(
!
(
dlgCode
&
DLGC_WANTMESSAGE
))
{
{
...
@@ -3005,7 +3004,7 @@ static BOOL PROPSHEET_IsDialogMessage(HWND hwnd, LPMSG lpMsg)
...
@@ -3005,7 +3004,7 @@ static BOOL PROPSHEET_IsDialogMessage(HWND hwnd, LPMSG lpMsg)
}
}
}
}
return
IsDialogMessage
A
(
hwnd
,
lpMsg
);
return
IsDialogMessage
W
(
hwnd
,
lpMsg
);
}
}
/******************************************************************************
/******************************************************************************
...
@@ -3118,7 +3117,7 @@ static LRESULT PROPSHEET_Paint(HWND hwnd)
...
@@ -3118,7 +3117,7 @@ static LRESULT PROPSHEET_Paint(HWND hwnd)
MapWindowPoints
(
hwndLineHeader
,
hwnd
,
(
LPPOINT
)
&
r
,
2
);
MapWindowPoints
(
hwndLineHeader
,
hwnd
,
(
LPPOINT
)
&
r
,
2
);
SetRect
(
&
rzone
,
0
,
0
,
r
.
right
+
1
,
r
.
top
-
1
);
SetRect
(
&
rzone
,
0
,
0
,
r
.
right
+
1
,
r
.
top
-
1
);
GetObject
A
(
psInfo
->
ppshheader
.
u5
.
hbmHeader
,
sizeof
(
BITMAP
),
(
LPVOID
)
&
bm
);
GetObject
W
(
psInfo
->
ppshheader
.
u5
.
hbmHeader
,
sizeof
(
BITMAP
),
(
LPVOID
)
&
bm
);
if
(
psInfo
->
ppshheader
.
dwFlags
&
PSH_WIZARD97_OLD
)
if
(
psInfo
->
ppshheader
.
dwFlags
&
PSH_WIZARD97_OLD
)
{
{
...
@@ -3241,7 +3240,7 @@ static LRESULT PROPSHEET_Paint(HWND hwnd)
...
@@ -3241,7 +3240,7 @@ static LRESULT PROPSHEET_Paint(HWND hwnd)
hbr
=
GetSysColorBrush
(
COLOR_WINDOW
);
hbr
=
GetSysColorBrush
(
COLOR_WINDOW
);
FillRect
(
hdc
,
&
rzone
,
hbr
);
FillRect
(
hdc
,
&
rzone
,
hbr
);
GetObject
A
(
psInfo
->
ppshheader
.
u4
.
hbmWatermark
,
sizeof
(
BITMAP
),
(
LPVOID
)
&
bm
);
GetObject
W
(
psInfo
->
ppshheader
.
u4
.
hbmWatermark
,
sizeof
(
BITMAP
),
(
LPVOID
)
&
bm
);
hbmp
=
SelectObject
(
hdcSrc
,
psInfo
->
ppshheader
.
u4
.
hbmWatermark
);
hbmp
=
SelectObject
(
hdcSrc
,
psInfo
->
ppshheader
.
u4
.
hbmWatermark
);
BitBlt
(
hdc
,
0
,
offsety
,
min
(
bm
.
bmWidth
,
r
.
right
),
BitBlt
(
hdc
,
0
,
offsety
,
min
(
bm
.
bmWidth
,
r
.
right
),
...
@@ -3290,7 +3289,7 @@ PROPSHEET_DialogProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
...
@@ -3290,7 +3289,7 @@ PROPSHEET_DialogProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
HWND
hwndTabCtrl
=
GetDlgItem
(
hwnd
,
IDC_TABCONTROL
);
HWND
hwndTabCtrl
=
GetDlgItem
(
hwnd
,
IDC_TABCONTROL
);
LPCPROPSHEETPAGEW
ppshpage
;
LPCPROPSHEETPAGEW
ppshpage
;
int
idx
;
int
idx
;
LOGFONT
A
logFont
;
LOGFONT
W
logFont
;
/* Using PropSheetInfoStr to store extra data doesn't match the native
/* Using PropSheetInfoStr to store extra data doesn't match the native
* common control: native uses TCM_[GS]ETITEM
* common control: native uses TCM_[GS]ETITEM
...
@@ -3310,10 +3309,10 @@ PROPSHEET_DialogProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
...
@@ -3310,10 +3309,10 @@ PROPSHEET_DialogProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
PROPSHEET_SetWizButtons
(
hwnd
,
PSWIZB_BACK
|
PSWIZB_NEXT
);
PROPSHEET_SetWizButtons
(
hwnd
,
PSWIZB_BACK
|
PSWIZB_NEXT
);
/* Set up fonts */
/* Set up fonts */
SystemParametersInfo
A
(
SPI_GETICONTITLELOGFONT
,
0
,
&
logFont
,
0
);
SystemParametersInfo
W
(
SPI_GETICONTITLELOGFONT
,
0
,
&
logFont
,
0
);
psInfo
->
hFont
=
CreateFontIndirect
A
(
&
logFont
);
psInfo
->
hFont
=
CreateFontIndirect
W
(
&
logFont
);
logFont
.
lfWeight
=
FW_BOLD
;
logFont
.
lfWeight
=
FW_BOLD
;
psInfo
->
hFontBold
=
CreateFontIndirect
A
(
&
logFont
);
psInfo
->
hFontBold
=
CreateFontIndirect
W
(
&
logFont
);
/*
/*
* Small icon in the title bar.
* Small icon in the title bar.
...
...
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