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
03ca7640
Commit
03ca7640
authored
Aug 11, 2003
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Aug 11, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WM_PAINT(wParam) might be a valid HDC.
parent
4d1d5fd3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
6 deletions
+10
-6
scroll.c
controls/scroll.c
+7
-3
static.c
controls/static.c
+3
-3
No files found.
controls/scroll.c
View file @
03ca7640
...
...
@@ -1428,12 +1428,16 @@ static LRESULT WINAPI ScrollBarWndProc( HWND hwnd, UINT message, WPARAM wParam,
case
WM_PAINT
:
{
PAINTSTRUCT
ps
;
HDC
hdc
=
BeginPaint
(
hwnd
,
&
ps
);
HDC
hdc
=
wParam
?
(
HDC
)
wParam
:
BeginPaint
(
hwnd
,
&
ps
);
if
(
GetWindowLongW
(
hwnd
,
GWL_STYLE
)
&
SBS_SIZEBOX
)
FillRect
(
hdc
,
&
ps
.
rcPaint
,
GetSysColorBrush
(
COLOR_SCROLLBAR
)
);
{
RECT
rc
;
GetClientRect
(
hwnd
,
&
rc
);
FillRect
(
hdc
,
&
rc
,
GetSysColorBrush
(
COLOR_SCROLLBAR
)
);
}
else
SCROLL_DrawScrollBar
(
hwnd
,
hdc
,
SB_CTL
,
TRUE
,
TRUE
);
EndPaint
(
hwnd
,
&
ps
);
if
(
!
wParam
)
EndPaint
(
hwnd
,
&
ps
);
}
break
;
...
...
controls/static.c
View file @
03ca7640
...
...
@@ -252,10 +252,10 @@ static LRESULT StaticWndProc_common( HWND hwnd, UINT uMsg, WPARAM wParam,
case
WM_PAINT
:
{
PAINTSTRUCT
ps
;
BeginPaint
(
hwnd
,
&
ps
);
HDC
hdc
=
wParam
?
(
HDC
)
wParam
:
BeginPaint
(
hwnd
,
&
ps
);
if
(
staticPaintFunc
[
style
])
(
staticPaintFunc
[
style
])(
hwnd
,
ps
.
hdc
,
full_style
);
EndPaint
(
hwnd
,
&
ps
);
(
staticPaintFunc
[
style
])(
hwnd
,
hdc
,
full_style
);
if
(
!
wParam
)
EndPaint
(
hwnd
,
&
ps
);
}
break
;
...
...
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