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
af7e4dbe
Commit
af7e4dbe
authored
Sep 27, 2010
by
Hans Leidekker
Committed by
Alexandre Julliard
Sep 27, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: Add a stub implementation of TaskDialogIndirect.
parent
a4d7540a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
105 additions
and
0 deletions
+105
-0
comctl32.spec
dlls/comctl32/comctl32.spec
+1
-0
commctrl.c
dlls/comctl32/commctrl.c
+14
-0
commctrl.h
include/commctrl.h
+90
-0
No files found.
dlls/comctl32/comctl32.spec
View file @
af7e4dbe
...
...
@@ -188,5 +188,6 @@
@ stdcall PropertySheet(ptr) PropertySheetA
@ stdcall PropertySheetA(ptr)
@ stdcall PropertySheetW(ptr)
@ stdcall TaskDialogIndirect(ptr ptr ptr ptr)
@ stdcall UninitializeFlatSB(long)
@ stdcall _TrackMouseEvent(ptr)
dlls/comctl32/commctrl.c
View file @
af7e4dbe
...
...
@@ -1689,3 +1689,17 @@ int WINAPI DrawShadowText(HDC hdc, LPCWSTR pszText, UINT cch, RECT *rect, DWORD
crText
,
crShadow
,
ixOffset
,
iyOffset
);
return
DrawTextW
(
hdc
,
pszText
,
cch
,
rect
,
DT_LEFT
);
}
/***********************************************************************
* TaskDialogIndirect [COMCTL32.@]
*/
HRESULT
WINAPI
TaskDialogIndirect
(
const
TASKDIALOGCONFIG
*
pTaskConfig
,
int
*
pnButton
,
int
*
pnRadioButton
,
BOOL
*
pfVerificationFlagChecked
)
{
FIXME
(
"%p, %p, %p, %p
\n
"
,
pTaskConfig
,
pnButton
,
pnRadioButton
,
pfVerificationFlagChecked
);
if
(
pnButton
)
*
pnButton
=
IDOK
;
if
(
pnRadioButton
)
*
pnRadioButton
=
pTaskConfig
->
nDefaultButton
;
if
(
pfVerificationFlagChecked
)
*
pfVerificationFlagChecked
=
TRUE
;
return
S_OK
;
}
include/commctrl.h
View file @
af7e4dbe
...
...
@@ -5212,6 +5212,96 @@ static const WCHAR WC_SCROLLBARW[] = { 'S','c','r','o','l','l','B','a','r',0 };
#endif
#define WC_SCROLLBAR WINELIB_NAME_AW(WC_SCROLLBAR)
/**************************************************************************
* Task dialog
*/
#ifndef NOTASKDIALOG
#include <pshpack1.h>
enum
_TASKDIALOG_FLAGS
{
TDF_ENABLE_HYPERLINKS
=
0x0001
,
TDF_USE_HICON_MAIN
=
0x0002
,
TDF_USE_HICON_FOOTER
=
0x0004
,
TDF_ALLOW_DIALOG_CANCELLATION
=
0x0008
,
TDF_USE_COMMAND_LINKS
=
0x0010
,
TDF_USE_COMMAND_LINKS_NO_ICON
=
0x0020
,
TDF_EXPAND_FOOTER_AREA
=
0x0040
,
TDF_EXPANDED_BY_DEFAULT
=
0x0080
,
TDF_VERIFICATION_FLAG_CHECKED
=
0x0100
,
TDF_SHOW_PROGRESS_BAR
=
0x0200
,
TDF_SHOW_MARQUEE_PROGRESS_BAR
=
0x0400
,
TDF_CALLBACK_TIMER
=
0x0800
,
TDF_POSITION_RELATIVE_TO_WINDOW
=
0x1000
,
TDF_RTL_LAYOUT
=
0x2000
,
TDF_NO_DEFAULT_RADIO_BUTTON
=
0x4000
,
TDF_CAN_BE_MINIMIZED
=
0x8000
};
typedef
int
TASKDIALOG_FLAGS
;
enum
_TASKDIALOG_COMMON_BUTTON_FLAGS
{
TDCBF_OK_BUTTON
=
0x0001
,
TDCBF_YES_BUTTON
=
0x0002
,
TDCBF_NO_BUTTON
=
0x0004
,
TDCBF_CANCEL_BUTTON
=
0x0008
,
TDCBF_RETRY_BUTTON
=
0x0010
,
TDCBF_CLOSE_BUTTON
=
0x0020
};
typedef
int
TASKDIALOG_COMMON_BUTTON_FLAGS
;
typedef
struct
_TASKDIALOG_BUTTON
{
int
nButtonID
;
PCWSTR
pszButtonText
;
}
TASKDIALOG_BUTTON
;
typedef
HRESULT
(
CALLBACK
*
PFTASKDIALOGCALLBACK
)(
HWND
,
UINT
,
WPARAM
,
LPARAM
,
LONG_PTR
);
typedef
struct
_TASKDIALOGCONFIG
{
UINT
cbSize
;
HWND
hwndParent
;
HINSTANCE
hInstance
;
TASKDIALOG_FLAGS
dwFlags
;
TASKDIALOG_COMMON_BUTTON_FLAGS
dwCommonButtons
;
PCWSTR
pszWindowTitle
;
union
{
HICON
hMainIcon
;
PCWSTR
pszMainIcon
;
}
DUMMYUNIONNAME
;
PCWSTR
pszMainInstruction
;
PCWSTR
pszContent
;
UINT
cButtons
;
const
TASKDIALOG_BUTTON
*
pButtons
;
int
nDefaultButton
;
UINT
cRadioButtons
;
const
TASKDIALOG_BUTTON
*
pRadioButtons
;
int
nDefaultRadioButton
;
PCWSTR
pszVerificationText
;
PCWSTR
pszExpandedInformation
;
PCWSTR
pszExpandedControlText
;
PCWSTR
pszCollapsedControlText
;
union
{
HICON
hFooterIcon
;
PCWSTR
pszFooterIcon
;
}
DUMMYUNIONNAME2
;
PCWSTR
pszFooter
;
PFTASKDIALOGCALLBACK
pfCallback
;
LONG_PTR
lpCallbackData
;
UINT
cxWidth
;
}
TASKDIALOGCONFIG
;
HRESULT
WINAPI
TaskDialogIndirect
(
const
TASKDIALOGCONFIG
*
,
int
*
,
int
*
,
BOOL
*
);
#include <poppack.h>
#endif
/* NOTASKDIALOG */
#ifdef __cplusplus
}
#endif
...
...
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