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
542be258
Commit
542be258
authored
Jul 01, 2010
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Jul 01, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comdlg32: Not all messages depend on initialized custom choose font dialog data.
parent
af3802bc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
fontdlg.c
dlls/comdlg32/fontdlg.c
+9
-7
No files found.
dlls/comdlg32/fontdlg.c
View file @
542be258
...
...
@@ -782,7 +782,7 @@ static LRESULT CFn_WMMeasureItem(HWND hDlg, LPARAM lParam)
/* use MAX of bitmap height and tm.tmHeight .*/
hdc
=
GetDC
(
hDlg
);
if
(
!
hdc
)
return
0
;
hfontprev
=
SelectObject
(
hdc
,
GetStockObject
(
SYSTEM_FONT
)
);
hfontprev
=
SelectObject
(
hdc
,
GetStockObject
(
DEFAULT_GUI_FONT
)
);
GetTextMetricsW
(
hdc
,
&
tm
);
if
(
tm
.
tmHeight
>
lpmi
->
itemHeight
)
lpmi
->
itemHeight
=
tm
.
tmHeight
;
SelectObject
(
hdc
,
hfontprev
);
...
...
@@ -905,6 +905,8 @@ static LRESULT CFn_WMCommand(HWND hDlg, WPARAM wParam, LPARAM lParam, LPCHOOSEFO
HDC
hdc
;
LPLOGFONTW
lpxx
=
lpcf
->
lpLogFont
;
if
(
!
lpcf
)
return
FALSE
;
TRACE
(
"WM_COMMAND wParam=%08X lParam=%08lX
\n
"
,
(
LONG
)
wParam
,
lParam
);
switch
(
LOWORD
(
wParam
))
{
...
...
@@ -1071,6 +1073,8 @@ static LRESULT CFn_WMDestroy(HWND hwnd, LPCHOOSEFONTW lpcfw)
LPLOGFONTA
lpLogFonta
;
int
len
;
if
(
!
lpcfw
)
return
FALSE
;
lpcfa
=
GetPropW
(
hwnd
,
strWineFontData_a
);
lpLogFonta
=
lpcfa
->
lpLogFont
;
lpszStyle
=
lpcfa
->
lpszStyle
;
...
...
@@ -1098,6 +1102,8 @@ static LRESULT CFn_WMPaint(HWND hDlg, WPARAM wParam, LPARAM lParam, const CHOOSE
{
WINDOWINFO
info
;
if
(
!
lpcf
)
return
FALSE
;
info
.
cbSize
=
sizeof
(
info
);
if
(
GetWindowInfo
(
GetDlgItem
(
hDlg
,
stc5
),
&
info
)
)
{
...
...
@@ -1156,9 +1162,7 @@ static INT_PTR CALLBACK FormatCharDlgProcA(HWND hDlg, UINT uMsg, WPARAM wParam,
if
(
uMsg
!=
WM_INITDIALOG
)
{
lpcfw
=
GetPropW
(
hDlg
,
strWineFontData
);
if
(
!
lpcfw
)
return
FALSE
;
if
(
CFn_HookCallChk32
(
lpcfw
))
if
(
lpcfw
&&
CFn_HookCallChk32
(
lpcfw
))
res
=
CallWindowProcA
((
WNDPROC
)
lpcfw
->
lpfnHook
,
hDlg
,
uMsg
,
wParam
,
lParam
);
if
(
res
)
return
res
;
...
...
@@ -1218,9 +1222,7 @@ static INT_PTR CALLBACK FormatCharDlgProcW(HWND hDlg, UINT uMsg, WPARAM wParam,
if
(
uMsg
!=
WM_INITDIALOG
)
{
lpcf
=
GetPropW
(
hDlg
,
strWineFontData
);
if
(
!
lpcf
)
return
FALSE
;
if
(
CFn_HookCallChk32
(
lpcf
))
if
(
lpcf
&&
CFn_HookCallChk32
(
lpcf
))
res
=
CallWindowProcW
((
WNDPROC
)
lpcf
->
lpfnHook
,
hDlg
,
uMsg
,
wParam
,
lParam
);
if
(
res
)
return
res
;
...
...
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