Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
5688ffb7
Commit
5688ffb7
authored
Apr 03, 2007
by
Aric Stewart
Committed by
Alexandre Julliard
Apr 04, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: Propsheet exception fix.
Do not attempt to draw a page during WM_PAINT if there is no active page.
parent
e3d3d182
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
0 deletions
+36
-0
propsheet.c
dlls/comctl32/propsheet.c
+1
-0
propsheet.c
dlls/comctl32/tests/propsheet.c
+35
-0
No files found.
dlls/comctl32/propsheet.c
View file @
5688ffb7
...
...
@@ -3229,6 +3229,7 @@ static LRESULT PROPSHEET_Paint(HWND hwnd, HDC hdcParam)
WCHAR
szBuffer
[
256
];
int
nLength
;
if
(
psInfo
->
active_page
<
0
)
return
1
;
hdc
=
hdcParam
?
hdcParam
:
BeginPaint
(
hwnd
,
&
ps
);
if
(
!
hdc
)
return
1
;
...
...
dlls/comctl32/tests/propsheet.c
View file @
5688ffb7
...
...
@@ -98,7 +98,42 @@ static void test_title(void)
DestroyWindow
(
hdlg
);
}
static
void
test_nopage
(
void
)
{
HPROPSHEETPAGE
hpsp
[
1
];
PROPSHEETPAGEA
psp
;
PROPSHEETHEADERA
psh
;
HWND
hdlg
;
memset
(
&
psp
,
0
,
sizeof
(
psp
));
psp
.
dwSize
=
sizeof
(
psp
);
psp
.
dwFlags
=
0
;
psp
.
hInstance
=
GetModuleHandleW
(
NULL
);
U
(
psp
).
pszTemplate
=
"prop_page1"
;
U2
(
psp
).
pszIcon
=
NULL
;
psp
.
pfnDlgProc
=
page_dlg_proc
;
psp
.
lParam
=
0
;
hpsp
[
0
]
=
CreatePropertySheetPageA
(
&
psp
);
memset
(
&
psh
,
0
,
sizeof
(
psh
));
psh
.
dwSize
=
sizeof
(
psh
);
psh
.
dwFlags
=
PSH_MODELESS
|
PSH_USECALLBACK
;
psh
.
pszCaption
=
"test caption"
;
psh
.
nPages
=
1
;
psh
.
hwndParent
=
GetDesktopWindow
();
U3
(
psh
).
phpage
=
hpsp
;
psh
.
pfnCallback
=
sheet_callback
;
hdlg
=
(
HWND
)
PropertySheetA
(
&
psh
);
ShowWindow
(
hdlg
,
SW_NORMAL
);
SendMessage
(
hdlg
,
PSM_REMOVEPAGE
,
0
,
0
);
RedrawWindow
(
hdlg
,
NULL
,
NULL
,
RDW_UPDATENOW
|
RDW_ERASENOW
);
DestroyWindow
(
hdlg
);
}
START_TEST
(
propsheet
)
{
test_title
();
test_nopage
();
}
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