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
9e3ebed4
Commit
9e3ebed4
authored
Jun 01, 2017
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jun 01, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/taskdialog: Added TaskDialog() export.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
15c7e654
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
34 additions
and
0 deletions
+34
-0
comctl32.spec
dlls/comctl32/comctl32.spec
+1
-0
taskdialog.c
dlls/comctl32/taskdialog.c
+25
-0
taskdialog.c
dlls/comctl32/tests/taskdialog.c
+8
-0
No files found.
dlls/comctl32/comctl32.spec
View file @
9e3ebed4
...
...
@@ -61,6 +61,7 @@
340 stdcall -ordinal DPA_CreateEx(long long)
341 stdcall -noname SendNotify(long long long ptr)
342 stdcall -noname SendNotifyEx(long long long ptr long)
344 stdcall -ordinal TaskDialog(long long wstr wstr wstr long wstr ptr)
345 stdcall -ordinal TaskDialogIndirect(ptr ptr ptr ptr)
350 stdcall -noname -private StrChrA(str long)
351 stdcall -noname -private StrRChrA(str str long)
...
...
dlls/comctl32/taskdialog.c
View file @
9e3ebed4
...
...
@@ -22,6 +22,8 @@
#include <stdarg.h>
#include <string.h>
#define NONAMELESSUNION
#include "windef.h"
#include "winbase.h"
#include "wingdi.h"
...
...
@@ -384,3 +386,26 @@ HRESULT WINAPI TaskDialogIndirect(const TASKDIALOGCONFIG *taskconfig, int *butto
return
S_OK
;
}
/***********************************************************************
* TaskDialog [COMCTL32.@]
*/
HRESULT
WINAPI
TaskDialog
(
HWND
owner
,
HINSTANCE
hinst
,
const
WCHAR
*
title
,
const
WCHAR
*
main_instruction
,
const
WCHAR
*
content
,
TASKDIALOG_COMMON_BUTTON_FLAGS
common_buttons
,
const
WCHAR
*
icon
,
int
*
button
)
{
TASKDIALOGCONFIG
taskconfig
;
TRACE
(
"%p, %p, %s, %s, %s, %#x, %s, %p
\n
"
,
owner
,
hinst
,
debugstr_w
(
title
),
debugstr_w
(
main_instruction
),
debugstr_w
(
content
),
common_buttons
,
debugstr_w
(
icon
),
button
);
memset
(
&
taskconfig
,
0
,
sizeof
(
taskconfig
));
taskconfig
.
cbSize
=
sizeof
(
taskconfig
);
taskconfig
.
hwndParent
=
owner
;
taskconfig
.
hInstance
=
hinst
;
taskconfig
.
dwCommonButtons
=
common_buttons
;
taskconfig
.
pszWindowTitle
=
title
;
taskconfig
.
u
.
pszMainIcon
=
icon
;
taskconfig
.
pszMainInstruction
=
main_instruction
;
taskconfig
.
pszContent
=
content
;
return
TaskDialogIndirect
(
&
taskconfig
,
button
,
NULL
,
NULL
);
}
dlls/comctl32/tests/taskdialog.c
View file @
9e3ebed4
...
...
@@ -28,6 +28,8 @@
#include "v6util.h"
static
HRESULT
(
WINAPI
*
pTaskDialogIndirect
)(
const
TASKDIALOGCONFIG
*
,
int
*
,
int
*
,
BOOL
*
);
static
HRESULT
(
WINAPI
*
pTaskDialog
)(
HWND
,
HINSTANCE
,
const
WCHAR
*
,
const
WCHAR
*
,
const
WCHAR
*
,
TASKDIALOG_COMMON_BUTTON_FLAGS
,
const
WCHAR
*
,
int
*
);
START_TEST
(
taskdialog
)
{
...
...
@@ -50,6 +52,12 @@ START_TEST(taskdialog)
return
;
}
pTaskDialog
=
(
void
*
)
GetProcAddress
(
hinst
,
"TaskDialog"
);
ptr_ordinal
=
GetProcAddress
(
hinst
,
(
const
char
*
)
344
);
ok
(
pTaskDialog
==
ptr_ordinal
,
"got wrong pointer for ordinal 344, %p expected %p
\n
"
,
ptr_ordinal
,
pTaskDialog
);
ptr_ordinal
=
GetProcAddress
(
hinst
,
(
const
char
*
)
345
);
ok
(
pTaskDialogIndirect
==
ptr_ordinal
,
"got wrong pointer for ordinal 345, %p expected %p
\n
"
,
ptr_ordinal
,
pTaskDialogIndirect
);
...
...
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