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
04f96a86
Commit
04f96a86
authored
Dec 30, 2003
by
Marcus Meissner
Committed by
Alexandre Julliard
Dec 30, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DWL_USER might be used otherwise, so use an internal window property
for data storage.
parent
14f7446f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
fontdlg.c
dlls/commdlg/fontdlg.c
+6
-4
No files found.
dlls/commdlg/fontdlg.c
View file @
04f96a86
...
...
@@ -39,6 +39,8 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
commdlg
);
#define WINE_FONTDATA "__WINE_FONTDLGDATA"
#include "cdlg.h"
static
HBITMAP
hBitmapTT
=
0
;
...
...
@@ -686,7 +688,7 @@ LRESULT CFn_WMInitDialog(HWND hDlg, WPARAM wParam, LPARAM lParam,
LPLOGFONTA
lpxx
;
HCURSOR
hcursor
=
SetCursor
(
LoadCursorA
(
0
,(
LPSTR
)
IDC_WAIT
));
Set
WindowLongA
(
hDlg
,
DWL_USER
,
lParam
);
Set
PropA
(
hDlg
,
WINE_FONTDATA
,
(
HANDLE
)
lParam
);
lpxx
=
lpcf
->
lpLogFont
;
TRACE
(
"WM_INITDIALOG lParam=%08lX
\n
"
,
lParam
);
...
...
@@ -1072,7 +1074,7 @@ LRESULT CFn_WMCommand(HWND hDlg, WPARAM wParam, LPARAM lParam,
case
psh15
:
i
=
RegisterWindowMessageA
(
HELPMSGSTRINGA
);
if
(
lpcf
->
hwndOwner
)
SendMessageA
(
lpcf
->
hwndOwner
,
i
,
0
,
(
LPARAM
)
Get
WindowLongA
(
hDlg
,
DWL_USER
));
SendMessageA
(
lpcf
->
hwndOwner
,
i
,
0
,
(
LPARAM
)
Get
PropA
(
hDlg
,
WINE_FONTDATA
));
/* if (CFn_HookCallChk(lpcf))
CallWindowProc16(lpcf->lpfnHook,hDlg,WM_COMMAND,psh15,(LPARAM)lpcf);*/
break
;
...
...
@@ -1163,7 +1165,7 @@ INT_PTR CALLBACK FormatCharDlgProcA(HWND hDlg, UINT uMsg, WPARAM wParam,
INT_PTR
res
=
FALSE
;
if
(
uMsg
!=
WM_INITDIALOG
)
{
lpcf
=
(
LPCHOOSEFONTA
)
Get
WindowLongA
(
hDlg
,
DWL_USER
);
lpcf
=
(
LPCHOOSEFONTA
)
Get
PropA
(
hDlg
,
WINE_FONTDATA
);
if
(
!
lpcf
&&
uMsg
!=
WM_MEASUREITEM
)
return
FALSE
;
if
(
CFn_HookCallChk32
(
lpcf
))
...
...
@@ -1214,7 +1216,7 @@ INT_PTR CALLBACK FormatCharDlgProcW(HWND hDlg, UINT uMsg, WPARAM wParam,
INT_PTR
res
=
FALSE
;
if
(
uMsg
!=
WM_INITDIALOG
)
{
lpcf32w
=
(
LPCHOOSEFONTW
)
Get
WindowLongA
(
hDlg
,
DWL_USER
);
lpcf32w
=
(
LPCHOOSEFONTW
)
Get
PropA
(
hDlg
,
WINE_FONTDATA
);
if
(
!
lpcf32w
)
return
FALSE
;
if
(
CFn_HookCallChk32
((
LPCHOOSEFONTA
)
lpcf32w
))
...
...
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