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
Hide 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)
SetWindowPos
(
hwndButton
,
0
,
x
,
y
,
0
,
0
,
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)
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
)
return
FALSE
;
else
if
(
msgResult
==
0
)
...
...
@@ -1789,7 +1789,7 @@ static BOOL PROPSHEET_Apply(HWND hwndDlg, LPARAM lParam)
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
;
/*
...
...
@@ -1803,7 +1803,7 @@ static BOOL PROPSHEET_Apply(HWND hwndDlg, LPARAM lParam)
hwndPage
=
psInfo
->
proppage
[
i
].
hwndPage
;
if
(
hwndPage
)
{
switch
(
SendMessage
A
(
hwndPage
,
WM_NOTIFY
,
0
,
(
LPARAM
)
&
psn
))
switch
(
SendMessage
W
(
hwndPage
,
WM_NOTIFY
,
0
,
(
LPARAM
)
&
psn
))
{
case
PSNRET_INVALID
:
PROPSHEET_ShowPage
(
hwndDlg
,
i
,
psInfo
);
...
...
@@ -1823,7 +1823,7 @@ static BOOL PROPSHEET_Apply(HWND hwndDlg, LPARAM lParam)
psn
.
hdr
.
code
=
PSN_SETACTIVE
;
psn
.
lParam
=
0
;
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
;
...
...
@@ -1850,7 +1850,7 @@ static void PROPSHEET_Cancel(HWND hwndDlg, LPARAM lParam)
psn
.
hdr
.
idFrom
=
0
;
psn
.
lParam
=
0
;
if
(
SendMessage
A
(
hwndPage
,
WM_NOTIFY
,
0
,
(
LPARAM
)
&
psn
))
if
(
SendMessage
W
(
hwndPage
,
WM_NOTIFY
,
0
,
(
LPARAM
)
&
psn
))
return
;
psn
.
hdr
.
code
=
PSN_RESET
;
...
...
@@ -1861,7 +1861,7 @@ static void PROPSHEET_Cancel(HWND hwndDlg, LPARAM lParam)
hwndPage
=
psInfo
->
proppage
[
i
].
hwndPage
;
if
(
hwndPage
)
SendMessage
A
(
hwndPage
,
WM_NOTIFY
,
0
,
(
LPARAM
)
&
psn
);
SendMessage
W
(
hwndPage
,
WM_NOTIFY
,
0
,
(
LPARAM
)
&
psn
);
}
if
(
psInfo
->
isModeless
)
...
...
@@ -1893,7 +1893,7 @@ static void PROPSHEET_Help(HWND hwndDlg)
psn
.
hdr
.
idFrom
=
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)
psn
.
hdr
.
idFrom
=
0
;
psn
.
lParam
=
0
;
res
=
!
SendMessage
A
(
hwndPage
,
WM_NOTIFY
,
0
,
(
LPARAM
)
&
psn
);
res
=
!
SendMessage
W
(
hwndPage
,
WM_NOTIFY
,
0
,
(
LPARAM
)
&
psn
);
end:
TRACE
(
"<-- %d
\n
"
,
res
);
...
...
@@ -2222,7 +2222,7 @@ static void PROPSHEET_SetFinishTextA(HWND hwndDlg, LPCSTR lpszText)
EnableWindow
(
hwndButton
,
TRUE
);
/* 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 */
hwndButton
=
GetDlgItem
(
hwndDlg
,
IDC_BACK_BUTTON
);
...
...
@@ -2267,13 +2267,12 @@ static LRESULT PROPSHEET_QuerySiblings(HWND hwndDlg,
int
i
=
0
;
HWND
hwndPage
;
LRESULT
msgResult
=
0
;
PropSheetInfo
*
psInfo
=
(
PropSheetInfo
*
)
GetPropW
(
hwndDlg
,
PropSheetInfoStr
);
PropSheetInfo
*
psInfo
=
(
PropSheetInfo
*
)
GetPropW
(
hwndDlg
,
PropSheetInfoStr
);
while
((
i
<
psInfo
->
nPages
)
&&
(
msgResult
==
0
))
{
hwndPage
=
psInfo
->
proppage
[
i
].
hwndPage
;
msgResult
=
SendMessage
A
(
hwndPage
,
PSM_QUERYSIBLINGS
,
wParam
,
lParam
);
msgResult
=
SendMessage
W
(
hwndPage
,
PSM_QUERYSIBLINGS
,
wParam
,
lParam
);
i
++
;
}
...
...
@@ -2480,7 +2479,7 @@ static void PROPSHEET_SetWizButtons(HWND hwndDlg, DWORD dwFlags)
EnableWindow
(
hwndNext
,
TRUE
);
/* 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
))
...
...
@@ -2495,7 +2494,7 @@ static void PROPSHEET_SetWizButtons(HWND hwndDlg, DWORD dwFlags)
EnableWindow
(
hwndFinish
,
TRUE
);
/* 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)
if
(
lpMsg
->
message
==
WM_KEYDOWN
&&
(
GetKeyState
(
VK_CONTROL
)
&
0x8000
))
{
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
))
{
...
...
@@ -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)
MapWindowPoints
(
hwndLineHeader
,
hwnd
,
(
LPPOINT
)
&
r
,
2
);
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
)
{
...
...
@@ -3241,7 +3240,7 @@ static LRESULT PROPSHEET_Paint(HWND hwnd)
hbr
=
GetSysColorBrush
(
COLOR_WINDOW
);
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
);
BitBlt
(
hdc
,
0
,
offsety
,
min
(
bm
.
bmWidth
,
r
.
right
),
...
...
@@ -3290,7 +3289,7 @@ PROPSHEET_DialogProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
HWND
hwndTabCtrl
=
GetDlgItem
(
hwnd
,
IDC_TABCONTROL
);
LPCPROPSHEETPAGEW
ppshpage
;
int
idx
;
LOGFONT
A
logFont
;
LOGFONT
W
logFont
;
/* Using PropSheetInfoStr to store extra data doesn't match the native
* common control: native uses TCM_[GS]ETITEM
...
...
@@ -3310,10 +3309,10 @@ PROPSHEET_DialogProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
PROPSHEET_SetWizButtons
(
hwnd
,
PSWIZB_BACK
|
PSWIZB_NEXT
);
/* Set up fonts */
SystemParametersInfo
A
(
SPI_GETICONTITLELOGFONT
,
0
,
&
logFont
,
0
);
psInfo
->
hFont
=
CreateFontIndirect
A
(
&
logFont
);
SystemParametersInfo
W
(
SPI_GETICONTITLELOGFONT
,
0
,
&
logFont
,
0
);
psInfo
->
hFont
=
CreateFontIndirect
W
(
&
logFont
);
logFont
.
lfWeight
=
FW_BOLD
;
psInfo
->
hFontBold
=
CreateFontIndirect
A
(
&
logFont
);
psInfo
->
hFontBold
=
CreateFontIndirect
W
(
&
logFont
);
/*
* 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