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
61a0799b
Commit
61a0799b
authored
May 31, 2006
by
Mike McCormack
Committed by
Alexandre Julliard
May 31, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineconsole: Store the font as a DWORD_PTR.
parent
899840c9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
dialog.c
programs/wineconsole/dialog.c
+7
-7
No files found.
programs/wineconsole/dialog.c
View file @
61a0799b
...
...
@@ -150,12 +150,12 @@ static LRESULT WINAPI WCUSER_FontPreviewProc(HWND hWnd, UINT msg, WPARAM wParam,
switch
(
msg
)
{
case
WM_CREATE
:
SetWindowLong
(
hWnd
,
0
,
0
);
SetWindowLong
Ptr
(
hWnd
,
0
,
0
);
break
;
case
WM_GETFONT
:
return
GetWindowLong
(
hWnd
,
0
);
return
GetWindowLong
Ptr
(
hWnd
,
0
);
case
WM_SETFONT
:
SetWindowLong
(
hWnd
,
0
,
wParam
);
SetWindowLong
Ptr
(
hWnd
,
0
,
wParam
);
if
(
LOWORD
(
lParam
))
{
InvalidateRect
(
hWnd
,
NULL
,
TRUE
);
...
...
@@ -164,7 +164,7 @@ static LRESULT WINAPI WCUSER_FontPreviewProc(HWND hWnd, UINT msg, WPARAM wParam,
break
;
case
WM_DESTROY
:
{
HFONT
hFont
=
(
HFONT
)
GetWindowLong
(
hWnd
,
0L
);
HFONT
hFont
=
(
HFONT
)
GetWindowLong
Ptr
(
hWnd
,
0L
);
if
(
hFont
)
DeleteObject
(
hFont
);
}
break
;
...
...
@@ -182,7 +182,7 @@ static LRESULT WINAPI WCUSER_FontPreviewProc(HWND hWnd, UINT msg, WPARAM wParam,
font_idx
=
SendDlgItemMessage
(
di
->
hDlg
,
IDC_FNT_LIST_FONT
,
LB_GETCURSEL
,
0L
,
0L
);
size_idx
=
SendDlgItemMessage
(
di
->
hDlg
,
IDC_FNT_LIST_SIZE
,
LB_GETCURSEL
,
0L
,
0L
);
hFont
=
(
HFONT
)
GetWindowLong
(
hWnd
,
0L
);
hFont
=
(
HFONT
)
GetWindowLong
Ptr
(
hWnd
,
0L
);
if
(
hFont
)
{
WCHAR
buf1
[
256
];
...
...
@@ -440,7 +440,7 @@ static BOOL select_font(struct dialog_info* di)
config
.
cell_height
,
di
->
font
[
size_idx
].
height
);
hOldFont
=
(
HFONT
)
SendDlgItemMessage
(
di
->
hDlg
,
IDC_FNT_PREVIEW
,
WM_GETFONT
,
0L
,
0L
);
SendDlgItemMessage
(
di
->
hDlg
,
IDC_FNT_PREVIEW
,
WM_SETFONT
,
(
DWORD
)
hFont
,
TRUE
);
SendDlgItemMessage
(
di
->
hDlg
,
IDC_FNT_PREVIEW
,
WM_SETFONT
,
(
WPARAM
)
hFont
,
TRUE
);
if
(
hOldFont
)
DeleteObject
(
hOldFont
);
LoadString
(
GetModuleHandle
(
NULL
),
IDS_FNT_DISPLAY
,
fmt
,
sizeof
(
fmt
)
/
sizeof
(
WCHAR
));
...
...
@@ -764,7 +764,7 @@ BOOL WCUSER_GetProperties(struct inner_data* data, BOOL current)
wndclass
.
style
=
0
;
wndclass
.
lpfnWndProc
=
WCUSER_FontPreviewProc
;
wndclass
.
cbClsExtra
=
0
;
wndclass
.
cbWndExtra
=
4
;
/* for hFont */
wndclass
.
cbWndExtra
=
sizeof
(
DWORD_PTR
)
;
/* for hFont */
wndclass
.
hInstance
=
GetModuleHandle
(
NULL
);
wndclass
.
hIcon
=
0
;
wndclass
.
hCursor
=
LoadCursor
(
0
,
IDC_ARROW
);
...
...
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