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
3f17416a
Commit
3f17416a
authored
Nov 24, 2002
by
Matthew Davison
Committed by
Alexandre Julliard
Nov 24, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix some unicode->ascii calls.
parent
af53e11f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
7 deletions
+10
-7
mdi.c
windows/mdi.c
+2
-2
msgbox.c
windows/msgbox.c
+4
-1
nonclient.c
windows/nonclient.c
+3
-3
win.c
windows/win.c
+1
-1
No files found.
windows/mdi.c
View file @
3f17416a
...
...
@@ -1705,8 +1705,8 @@ LRESULT WINAPI DefMDIChildProcW( HWND hwnd, UINT message,
break
;
case
SC_RESTORE
:
case
SC_MINIMIZE
:
SetWindowLong
A
(
hwnd
,
GWL_STYLE
,
GetWindowLong
A
(
hwnd
,
GWL_STYLE
)
|
WS_SYSMENU
);
SetWindowLong
W
(
hwnd
,
GWL_STYLE
,
GetWindowLong
W
(
hwnd
,
GWL_STYLE
)
|
WS_SYSMENU
);
break
;
case
SC_MAXIMIZE
:
if
(
ci
->
hwndChildMaximized
==
hwnd
)
...
...
windows/msgbox.c
View file @
3f17416a
...
...
@@ -441,8 +441,11 @@ INT WINAPI MessageBoxIndirectW( LPMSGBOXPARAMSW msgbox )
{
LPVOID
tmplate
;
HRSRC
hRes
;
HMODULE
hUser32
=
GetModuleHandleA
(
"user32.dll"
);
HMODULE
hUser32
;
static
const
WCHAR
user32_res_nameW
[]
=
{
'u'
,
's'
,
'e'
,
'r'
,
'3'
,
'2'
,
'.'
,
'd'
,
'l'
,
'l'
,
0
};
static
const
WCHAR
msg_box_res_nameW
[]
=
{
'M'
,
'S'
,
'G'
,
'B'
,
'O'
,
'X'
,
0
};
hUser32
=
GetModuleHandleW
(
user32_res_nameW
);
if
(
!
(
hRes
=
FindResourceExW
(
hUser32
,
RT_DIALOGW
,
msg_box_res_nameW
,
msgbox
->
dwLanguageId
)))
return
0
;
if
(
!
(
tmplate
=
(
LPVOID
)
LoadResource
(
hUser32
,
hRes
)))
...
...
windows/nonclient.c
View file @
3f17416a
...
...
@@ -345,11 +345,11 @@ BOOL WINAPI DrawCaptionTempW (HWND hwnd, HDC hdc, const RECT *rect, HFONT hFont,
if
(
hFont
)
hOldFont
=
SelectObject
(
hdc
,
hFont
);
else
{
NONCLIENTMETRICS
A
nclm
;
NONCLIENTMETRICS
W
nclm
;
HFONT
hNewFont
;
nclm
.
cbSize
=
sizeof
(
NONCLIENTMETRICSA
);
SystemParametersInfo
A
(
SPI_GETNONCLIENTMETRICS
,
0
,
&
nclm
,
0
);
hNewFont
=
CreateFontIndirect
A
((
uFlags
&
DC_SMALLCAP
)
?
SystemParametersInfo
W
(
SPI_GETNONCLIENTMETRICS
,
0
,
&
nclm
,
0
);
hNewFont
=
CreateFontIndirect
W
((
uFlags
&
DC_SMALLCAP
)
?
&
nclm
.
lfSmCaptionFont
:
&
nclm
.
lfCaptionFont
);
hOldFont
=
SelectObject
(
hdc
,
hNewFont
);
}
...
...
windows/win.c
View file @
3f17416a
...
...
@@ -1335,7 +1335,7 @@ HWND WINAPI CreateWindowExW( DWORD exStyle, LPCWSTR className,
WCHAR
buffer
[
256
];
if
(
!
instance
)
instance
=
GetModuleHandle
A
(
NULL
);
instance
=
GetModuleHandle
W
(
NULL
);
if
(
exStyle
&
WS_EX_MDICHILD
)
return
CreateMDIWindowW
(
className
,
windowName
,
style
,
x
,
y
,
width
,
height
,
parent
,
instance
,
(
LPARAM
)
data
);
...
...
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