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
801cb5a6
Commit
801cb5a6
authored
Nov 26, 2003
by
Rein Klazes
Committed by
Alexandre Julliard
Nov 26, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix "sample" box drawing by adding some needed coordinate and size
transformations.
parent
7eab865d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
fontdlg.c
dlls/commdlg/fontdlg.c
+6
-1
No files found.
dlls/commdlg/fontdlg.c
View file @
801cb5a6
...
...
@@ -916,6 +916,7 @@ LRESULT CFn_WMCommand(HWND hDlg, WPARAM wParam, LPARAM lParam,
if
(
GetWindowInfo
(
GetDlgItem
(
hDlg
,
stc5
),
&
wininfo
)
)
{
MapWindowPoints
(
0
,
hDlg
,
(
LPPOINT
)
&
wininfo
.
rcWindow
,
2
);
InvalidateRect
(
hDlg
,
&
wininfo
.
rcWindow
,
TRUE
);
}
}
...
...
@@ -932,6 +933,7 @@ LRESULT CFn_WMCommand(HWND hDlg, WPARAM wParam, LPARAM lParam,
if
(
GetWindowInfo
(
GetDlgItem
(
hDlg
,
stc5
),
&
wininfo
)
)
{
MapWindowPoints
(
0
,
hDlg
,
(
LPPOINT
)
&
wininfo
.
rcWindow
,
2
);
InvalidateRect
(
hDlg
,
&
wininfo
.
rcWindow
,
TRUE
);
}
}
...
...
@@ -983,8 +985,10 @@ static LRESULT CFn_WMPaint(HWND hDlg, WPARAM wParam, LPARAM lParam,
HFONT
hOrigFont
;
COLORREF
rgbPrev
;
WCHAR
sample
[
SAMPLE_EXTLEN
+
5
]
=
{
'A'
,
'a'
,
'B'
,
'b'
};
LOGFONTA
lf
=
*
(
lpcf
->
lpLogFont
);
/* Always start with this basic sample */
MapWindowPoints
(
0
,
hDlg
,
(
LPPOINT
)
&
info
.
rcWindow
,
2
);
hdc
=
BeginPaint
(
hDlg
,
&
ps
);
/* Paint frame */
...
...
@@ -1006,7 +1010,8 @@ static LRESULT CFn_WMPaint(HWND hDlg, WPARAM wParam, LPARAM lParam,
info
.
rcWindow
.
bottom
--
;
info
.
rcWindow
.
top
++
;
info
.
rcWindow
.
left
++
;
hOrigFont
=
SelectObject
(
hdc
,
CreateFontIndirectA
(
lpcf
->
lpLogFont
)
);
lf
.
lfHeight
=
MulDiv
(
lf
.
lfHeight
,
GetDeviceCaps
(
hdc
,
LOGPIXELSY
),
72
);
hOrigFont
=
SelectObject
(
hdc
,
CreateFontIndirectA
(
&
lf
)
);
rgbPrev
=
SetTextColor
(
hdc
,
lpcf
->
rgbColors
);
DrawTextW
(
hdc
,
sample
,
-
1
,
&
info
.
rcWindow
,
DT_CENTER
|
DT_VCENTER
|
DT_SINGLELINE
);
...
...
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