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
6ebbfd49
Commit
6ebbfd49
authored
May 10, 2006
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user: Prefer SendMessageW over SendMessageA where possible.
parent
2164815a
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
20 additions
and
20 deletions
+20
-20
defdlg.c
dlls/user/defdlg.c
+8
-8
icontitle.c
dlls/user/icontitle.c
+2
-2
mdi.c
dlls/user/mdi.c
+2
-2
nonclient.c
dlls/user/nonclient.c
+4
-4
winpos.c
dlls/user/winpos.c
+4
-4
No files found.
dlls/user/defdlg.c
View file @
6ebbfd49
...
...
@@ -159,15 +159,15 @@ static BOOL DEFDLG_SetDefId( HWND hwndDlg, DIALOGINFO *dlgInfo, WPARAM wParam)
/* Make sure the old default control is a valid push button ID */
hwndOld
=
GetDlgItem
(
hwndDlg
,
old_id
);
if
(
!
hwndOld
||
!
(
SendMessage
A
(
hwndOld
,
WM_GETDLGCODE
,
0
,
0
)
&
DLGC_DEFPUSHBUTTON
))
if
(
!
hwndOld
||
!
(
SendMessage
W
(
hwndOld
,
WM_GETDLGCODE
,
0
,
0
)
&
DLGC_DEFPUSHBUTTON
))
hwndOld
=
DEFDLG_FindDefButton
(
hwndDlg
);
if
(
hwndOld
&&
hwndOld
!=
hwndNew
)
SendMessage
A
(
hwndOld
,
BM_SETSTYLE
,
BS_PUSHBUTTON
,
TRUE
);
SendMessage
W
(
hwndOld
,
BM_SETSTYLE
,
BS_PUSHBUTTON
,
TRUE
);
if
(
hwndNew
)
{
if
(
dlgcode
&
DLGC_UNDEFPUSHBUTTON
)
SendMessage
A
(
hwndNew
,
BM_SETSTYLE
,
BS_DEFPUSHBUTTON
,
TRUE
);
SendMessage
W
(
hwndNew
,
BM_SETSTYLE
,
BS_DEFPUSHBUTTON
,
TRUE
);
}
return
TRUE
;
}
...
...
@@ -197,15 +197,15 @@ static BOOL DEFDLG_SetDefButton( HWND hwndDlg, DIALOGINFO *dlgInfo, HWND hwndNew
}
/* Make sure the old default control is a valid push button ID */
if
(
!
hwndOld
||
!
(
SendMessage
A
(
hwndOld
,
WM_GETDLGCODE
,
0
,
0
)
&
DLGC_DEFPUSHBUTTON
))
if
(
!
hwndOld
||
!
(
SendMessage
W
(
hwndOld
,
WM_GETDLGCODE
,
0
,
0
)
&
DLGC_DEFPUSHBUTTON
))
hwndOld
=
DEFDLG_FindDefButton
(
hwndDlg
);
if
(
hwndOld
&&
hwndOld
!=
hwndNew
)
SendMessage
A
(
hwndOld
,
BM_SETSTYLE
,
BS_PUSHBUTTON
,
TRUE
);
SendMessage
W
(
hwndOld
,
BM_SETSTYLE
,
BS_PUSHBUTTON
,
TRUE
);
if
(
hwndNew
)
{
if
(
dlgcode
&
DLGC_UNDEFPUSHBUTTON
)
SendMessage
A
(
hwndNew
,
BM_SETSTYLE
,
BS_DEFPUSHBUTTON
,
TRUE
);
SendMessage
W
(
hwndNew
,
BM_SETSTYLE
,
BS_DEFPUSHBUTTON
,
TRUE
);
}
return
TRUE
;
}
...
...
@@ -300,8 +300,8 @@ static LRESULT DEFDLG_Proc( HWND hwnd, UINT msg, WPARAM wParam,
if
(
hwndFocus
)
{
/* always make combo box hide its listbox control */
if
(
!
SendMessage
A
(
hwndFocus
,
CB_SHOWDROPDOWN
,
FALSE
,
0
))
SendMessage
A
(
GetParent
(
hwndFocus
),
CB_SHOWDROPDOWN
,
FALSE
,
0
);
if
(
!
SendMessage
W
(
hwndFocus
,
CB_SHOWDROPDOWN
,
FALSE
,
0
))
SendMessage
W
(
GetParent
(
hwndFocus
),
CB_SHOWDROPDOWN
,
FALSE
,
0
);
}
}
return
DefWindowProcA
(
hwnd
,
msg
,
wParam
,
lParam
);
...
...
dlls/user/icontitle.c
View file @
6ebbfd49
...
...
@@ -228,8 +228,8 @@ LRESULT WINAPI IconTitleWndProc( HWND hWnd, UINT msg,
if
(
wParam
)
ICONTITLE_SetTitlePos
(
hWnd
,
owner
);
return
0
;
case
WM_ERASEBKGND
:
if
(
GetWindowLong
A
(
owner
,
GWL_STYLE
)
&
WS_CHILD
)
lParam
=
SendMessage
A
(
owner
,
WM_ISACTIVEICON
,
0
,
0
);
if
(
GetWindowLong
W
(
owner
,
GWL_STYLE
)
&
WS_CHILD
)
lParam
=
SendMessage
W
(
owner
,
WM_ISACTIVEICON
,
0
,
0
);
else
lParam
=
(
owner
==
GetActiveWindow
());
if
(
ICONTITLE_Paint
(
hWnd
,
owner
,
(
HDC
)
wParam
,
(
BOOL
)
lParam
)
)
...
...
dlls/user/mdi.c
View file @
6ebbfd49
...
...
@@ -671,7 +671,7 @@ static LONG MDICascade( HWND client, MDICLIENTINFO *ci )
int
i
,
total
;
if
(
IsZoomed
(
ci
->
hwndActiveChild
))
SendMessage
A
(
client
,
WM_MDIRESTORE
,
(
WPARAM
)
ci
->
hwndActiveChild
,
0
);
SendMessage
W
(
client
,
WM_MDIRESTORE
,
(
WPARAM
)
ci
->
hwndActiveChild
,
0
);
if
(
ci
->
nActiveChildren
==
0
)
return
0
;
...
...
@@ -724,7 +724,7 @@ static void MDITile( HWND client, MDICLIENTINFO *ci, WPARAM wParam )
BOOL
has_icons
=
FALSE
;
if
(
IsZoomed
(
ci
->
hwndActiveChild
))
SendMessage
A
(
client
,
WM_MDIRESTORE
,
(
WPARAM
)
ci
->
hwndActiveChild
,
0
);
SendMessage
W
(
client
,
WM_MDIRESTORE
,
(
WPARAM
)
ci
->
hwndActiveChild
,
0
);
if
(
ci
->
nActiveChildren
==
0
)
return
;
...
...
dlls/user/nonclient.c
View file @
6ebbfd49
...
...
@@ -1318,9 +1318,9 @@ static void NC_TrackMinMaxBox( HWND hwnd, WORD wParam )
return
;
if
(
wParam
==
HTMINBUTTON
)
SendMessage
A
(
hwnd
,
WM_SYSCOMMAND
,
SC_MINIMIZE
,
MAKELONG
(
msg
.
pt
.
x
,
msg
.
pt
.
y
)
);
SendMessage
W
(
hwnd
,
WM_SYSCOMMAND
,
SC_MINIMIZE
,
MAKELONG
(
msg
.
pt
.
x
,
msg
.
pt
.
y
)
);
else
SendMessage
A
(
hwnd
,
WM_SYSCOMMAND
,
SendMessage
W
(
hwnd
,
WM_SYSCOMMAND
,
IsZoomed
(
hwnd
)
?
SC_RESTORE
:
SC_MAXIMIZE
,
MAKELONG
(
msg
.
pt
.
x
,
msg
.
pt
.
y
)
);
}
...
...
@@ -1377,7 +1377,7 @@ static void NC_TrackCloseButton (HWND hwnd, WORD wParam)
ReleaseDC
(
hwnd
,
hdc
);
if
(
!
pressed
)
return
;
SendMessage
A
(
hwnd
,
WM_SYSCOMMAND
,
SC_CLOSE
,
MAKELONG
(
msg
.
pt
.
x
,
msg
.
pt
.
y
)
);
SendMessage
W
(
hwnd
,
WM_SYSCOMMAND
,
SC_CLOSE
,
MAKELONG
(
msg
.
pt
.
x
,
msg
.
pt
.
y
)
);
}
...
...
@@ -1573,7 +1573,7 @@ LRESULT NC_HandleSysCommand( HWND hwnd, WPARAM wParam, LPARAM lParam )
break
;
case
SC_CLOSE
:
return
SendMessage
A
(
hwnd
,
WM_CLOSE
,
0
,
0
);
return
SendMessage
W
(
hwnd
,
WM_CLOSE
,
0
,
0
);
case
SC_VSCROLL
:
case
SC_HSCROLL
:
...
...
dlls/user/winpos.c
View file @
6ebbfd49
...
...
@@ -385,7 +385,7 @@ HWND WINPOS_WindowFromPoint( HWND hwndScope, POINT pt, INT *hittest )
*
hittest
=
HTCLIENT
;
break
;
}
res
=
SendMessage
A
(
list
[
i
],
WM_NCHITTEST
,
0
,
MAKELONG
(
pt
.
x
,
pt
.
y
)
);
res
=
SendMessage
W
(
list
[
i
],
WM_NCHITTEST
,
0
,
MAKELONG
(
pt
.
x
,
pt
.
y
)
);
if
(
res
!=
HTTRANSPARENT
)
{
*
hittest
=
res
;
/* Found the window */
...
...
@@ -679,7 +679,7 @@ BOOL WINPOS_RedrawIconTitle( HWND hWnd )
{
if
(
lpPos
->
hwndIconTitle
)
{
SendMessage
A
(
lpPos
->
hwndIconTitle
,
WM_SHOWWINDOW
,
TRUE
,
0
);
SendMessage
W
(
lpPos
->
hwndIconTitle
,
WM_SHOWWINDOW
,
TRUE
,
0
);
InvalidateRect
(
lpPos
->
hwndIconTitle
,
NULL
,
TRUE
);
return
TRUE
;
}
...
...
@@ -706,7 +706,7 @@ BOOL WINPOS_ShowIconTitle( HWND hwnd, BOOL bShow )
{
if
(
!
IsWindowVisible
(
title
))
{
SendMessage
A
(
title
,
WM_SHOWWINDOW
,
TRUE
,
0
);
SendMessage
W
(
title
,
WM_SHOWWINDOW
,
TRUE
,
0
);
SetWindowPos
(
title
,
0
,
0
,
0
,
0
,
0
,
SWP_NOSIZE
|
SWP_NOMOVE
|
SWP_NOACTIVATE
|
SWP_NOZORDER
|
SWP_SHOWWINDOW
);
}
...
...
@@ -795,7 +795,7 @@ void WINPOS_GetMinMaxInfo( HWND hwnd, POINT *maxSize, POINT *maxPos,
MinMax
.
ptMaxPosition
.
y
=
-
yinc
;
}
SendMessage
A
(
hwnd
,
WM_GETMINMAXINFO
,
0
,
(
LPARAM
)
&
MinMax
);
SendMessage
W
(
hwnd
,
WM_GETMINMAXINFO
,
0
,
(
LPARAM
)
&
MinMax
);
/* Some sanity checks */
...
...
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