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
b1d65cb1
Commit
b1d65cb1
authored
Mar 25, 2005
by
Dimitrie O. Paun
Committed by
Alexandre Julliard
Mar 25, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Handle wParam in WM_PAINT properly: if non-null, it is the hdc we are
supposed to use to draw into.
parent
8e276da0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
8 deletions
+9
-8
propsheet.c
dlls/comctl32/propsheet.c
+4
-4
syslink.c
dlls/comctl32/syslink.c
+5
-4
No files found.
dlls/comctl32/propsheet.c
View file @
b1d65cb1
...
...
@@ -3077,7 +3077,7 @@ static BOOL PROPSHEET_DoCommand(HWND hwnd, WORD wID)
/******************************************************************************
* PROPSHEET_Paint
*/
static
LRESULT
PROPSHEET_Paint
(
HWND
hwnd
)
static
LRESULT
PROPSHEET_Paint
(
HWND
hwnd
,
HDC
hdcParam
)
{
PropSheetInfo
*
psInfo
=
(
PropSheetInfo
*
)
GetPropW
(
hwnd
,
PropSheetInfoStr
);
PAINTSTRUCT
ps
;
...
...
@@ -3092,7 +3092,7 @@ static LRESULT PROPSHEET_Paint(HWND hwnd)
WCHAR
szBuffer
[
256
];
int
nLength
;
hdc
=
BeginPaint
(
hwnd
,
&
ps
);
hdc
=
hdcParam
?
hdcParam
:
BeginPaint
(
hwnd
,
&
ps
);
if
(
!
hdc
)
return
1
;
hdcSrc
=
CreateCompatibleDC
(
0
);
...
...
@@ -3266,7 +3266,7 @@ static LRESULT PROPSHEET_Paint(HWND hwnd)
DeleteDC
(
hdcSrc
);
EndPaint
(
hwnd
,
&
ps
);
if
(
!
hdcParam
)
EndPaint
(
hwnd
,
&
ps
);
return
0
;
}
...
...
@@ -3396,7 +3396,7 @@ PROPSHEET_DialogProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
}
case
WM_PAINT
:
PROPSHEET_Paint
(
hwnd
);
PROPSHEET_Paint
(
hwnd
,
(
HDC
)
wParam
);
return
TRUE
;
case
WM_DESTROY
:
...
...
dlls/comctl32/syslink.c
View file @
b1d65cb1
...
...
@@ -879,13 +879,14 @@ static LRESULT SYSLINK_Draw (SYSLINK_INFO *infoPtr, HDC hdc)
* SYSLINK_Paint
* Handles the WM_PAINT message.
*/
static
LRESULT
SYSLINK_Paint
(
SYSLINK_INFO
*
infoPtr
)
static
LRESULT
SYSLINK_Paint
(
SYSLINK_INFO
*
infoPtr
,
HDC
hdcParam
)
{
HDC
hdc
;
PAINTSTRUCT
ps
;
hdc
=
BeginPaint
(
infoPtr
->
Self
,
&
ps
);
hdc
=
hdcParam
?
hdcParam
:
BeginPaint
(
infoPtr
->
Self
,
&
ps
);
SYSLINK_Draw
(
infoPtr
,
hdc
);
EndPaint
(
infoPtr
->
Self
,
&
ps
);
if
(
!
hdcParam
)
EndPaint
(
infoPtr
->
Self
,
&
ps
);
return
0
;
}
...
...
@@ -1466,7 +1467,7 @@ static LRESULT WINAPI SysLinkWindowProc(HWND hwnd, UINT message,
switch
(
message
)
{
case
WM_PAINT
:
return
SYSLINK_Paint
(
infoPtr
);
return
SYSLINK_Paint
(
infoPtr
,
(
HDC
)
wParam
);
case
WM_SETCURSOR
:
{
...
...
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