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
d0b79c08
Commit
d0b79c08
authored
Oct 24, 1998
by
Eric Kohl
Committed by
Alexandre Julliard
Oct 24, 1998
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed DrawCaption16() and DrawCaptionTemp16().
parent
905d6226
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
15 deletions
+38
-15
nonclient.c
windows/nonclient.c
+38
-15
No files found.
windows/nonclient.c
View file @
d0b79c08
...
@@ -225,16 +225,21 @@ NC_AdjustRectInner95 (LPRECT16 rect, DWORD style, DWORD exStyle)
...
@@ -225,16 +225,21 @@ NC_AdjustRectInner95 (LPRECT16 rect, DWORD style, DWORD exStyle)
* lpRect [I]
* lpRect [I]
* uFlags [I]
* uFlags [I]
*
*
* RETURNS
* Success:
* Failure:
*/
*/
BOOL16
WINAPI
BOOL16
WINAPI
DrawCaption16
(
HWND16
hwnd
,
HDC16
hdc
,
const
RECT16
*
lpR
ect
,
UINT16
uFlags
)
DrawCaption16
(
HWND16
hwnd
,
HDC16
hdc
,
const
RECT16
*
r
ect
,
UINT16
uFlags
)
{
{
FIXME
(
nonclient
,
" stub!
\n
"
)
;
RECT32
rect32
;
// return DrawCaptionTemp32A (hwnd, hdc, lpRect, 0, 0, NULL, uFlags & 0x1F);
if
(
rect
)
CONV_RECT16TO32
(
rect
,
&
rect32
);
return
0
;
return
(
BOOL16
)
DrawCaptionTemp32A
(
hwnd
,
hdc
,
rect
?
&
rect32
:
NULL
,
0
,
0
,
NULL
,
uFlags
&
0x1F
);
}
}
...
@@ -247,6 +252,9 @@ DrawCaption16 (HWND16 hwnd, HDC16 hdc, const RECT16 *lpRect, UINT16 uFlags)
...
@@ -247,6 +252,9 @@ DrawCaption16 (HWND16 hwnd, HDC16 hdc, const RECT16 *lpRect, UINT16 uFlags)
* lpRect [I]
* lpRect [I]
* uFlags [I]
* uFlags [I]
*
*
* RETURNS
* Success:
* Failure:
*/
*/
BOOL32
WINAPI
BOOL32
WINAPI
...
@@ -259,23 +267,35 @@ DrawCaption32 (HWND32 hwnd, HDC32 hdc, const RECT32 *lpRect, UINT32 uFlags)
...
@@ -259,23 +267,35 @@ DrawCaption32 (HWND32 hwnd, HDC32 hdc, const RECT32 *lpRect, UINT32 uFlags)
/***********************************************************************
/***********************************************************************
* DrawCaptionTemp16 [USER.657]
* DrawCaptionTemp16 [USER.657]
*
*
* PARAMS
*
* RETURNS
* Success:
* Failure:
*/
*/
BOOL16
WINAPI
BOOL16
WINAPI
DrawCaptionTemp16
(
HWND16
hwnd
,
HDC16
hdc
,
const
RECT16
*
rect
,
HFONT16
hFont
,
DrawCaptionTemp16
(
HWND16
hwnd
,
HDC16
hdc
,
const
RECT16
*
rect
,
HFONT16
hFont
,
HICON16
hIcon
,
LPCSTR
str
,
UINT16
uFlags
)
HICON16
hIcon
,
LPCSTR
str
,
UINT16
uFlags
)
{
{
FIXME
(
nonclient
,
" stub!
\n
"
)
;
RECT32
rect32
;
// return DrawCaptionTemp32A (hwnd, hdc, lpRect, 0, 0, NULL, uFlags & 0x1F);
if
(
rect
)
CONV_RECT16TO32
(
rect
,
&
rect32
);
return
0
;
return
(
BOOL16
)
DrawCaptionTemp32A
(
hwnd
,
hdc
,
rect
?&
rect32
:
NULL
,
hFont
,
hIcon
,
str
,
uFlags
&
0x1F
);
}
}
/***********************************************************************
/***********************************************************************
* DrawCaptionTemp32A [USER32.599]
* DrawCaptionTemp32A [USER32.599]
*
*
* PARAMS
*
* RETURNS
* Success:
* Failure:
*/
*/
BOOL32
WINAPI
BOOL32
WINAPI
...
@@ -384,6 +404,11 @@ DrawCaptionTemp32A (HWND32 hwnd, HDC32 hdc, const RECT32 *rect, HFONT32 hFont,
...
@@ -384,6 +404,11 @@ DrawCaptionTemp32A (HWND32 hwnd, HDC32 hdc, const RECT32 *rect, HFONT32 hFont,
/***********************************************************************
/***********************************************************************
* DrawCaptionTemp32W [USER32.602]
* DrawCaptionTemp32W [USER32.602]
*
*
* PARAMS
*
* RETURNS
* Success:
* Failure:
*/
*/
BOOL32
WINAPI
BOOL32
WINAPI
...
@@ -987,11 +1012,9 @@ NC_DrawSysButton95 (HWND32 hwnd, HDC32 hdc, BOOL32 down)
...
@@ -987,11 +1012,9 @@ NC_DrawSysButton95 (HWND32 hwnd, HDC32 hdc, BOOL32 down)
hIcon
=
wndPtr
->
class
->
hIconSm
;
hIcon
=
wndPtr
->
class
->
hIconSm
;
else
if
(
wndPtr
->
class
->
hIcon
)
else
if
(
wndPtr
->
class
->
hIcon
)
hIcon
=
wndPtr
->
class
->
hIcon
;
hIcon
=
wndPtr
->
class
->
hIcon
;
// else
// hIcon = LoadIcon32A (0, IDI_APPLICATION);
if
(
hIcon
)
if
(
hIcon
)
DrawIconEx32
(
hdc
,
rect
.
left
+
2
,
rect
.
top
+
1
,
hIcon
,
DrawIconEx32
(
hdc
,
rect
.
left
+
2
,
rect
.
top
+
2
,
hIcon
,
sysMetrics
[
SM_CXSMICON
],
sysMetrics
[
SM_CXSMICON
],
sysMetrics
[
SM_CYSMICON
],
sysMetrics
[
SM_CYSMICON
],
0
,
0
,
DI_NORMAL
);
0
,
0
,
DI_NORMAL
);
...
@@ -1396,10 +1419,10 @@ static void NC_DrawCaption( HDC32 hdc, RECT32 *rect, HWND32 hwnd,
...
@@ -1396,10 +1419,10 @@ static void NC_DrawCaption( HDC32 hdc, RECT32 *rect, HWND32 hwnd,
*
*
* NC_DrawCaption95(
* NC_DrawCaption95(
* HDC32 hdc,
* HDC32 hdc,
* RECT32
*rect,
* RECT32 *rect,
* HWND32
hwnd,
* HWND32 hwnd,
* DWORD style,
* DWORD style,
* BOOL32
active )
* BOOL32 active )
*
*
* Draw the window caption for Win95 style windows.
* Draw the window caption for Win95 style windows.
* The correct pen for the window frame must be selected in the DC.
* The correct pen for the window frame must be selected in the DC.
...
@@ -1660,8 +1683,8 @@ void NC_DoNCPaint95(
...
@@ -1660,8 +1683,8 @@ void NC_DoNCPaint95(
r
.
bottom
=
rect
.
top
+
sysMetrics
[
SM_CYCAPTION
];
r
.
bottom
=
rect
.
top
+
sysMetrics
[
SM_CYCAPTION
];
rect
.
top
+=
sysMetrics
[
SM_CYCAPTION
];
rect
.
top
+=
sysMetrics
[
SM_CYCAPTION
];
}
}
NC_DrawCaption95
(
hdc
,
&
r
,
hwnd
,
wndPtr
->
dwStyle
,
NC_DrawCaption95
(
hdc
,
&
r
,
hwnd
,
wndPtr
->
dwStyle
,
wndPtr
->
dwExStyle
,
active
);
wndPtr
->
dwExStyle
,
active
);
}
}
}
}
...
...
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