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
f7d5f198
Commit
f7d5f198
authored
Oct 18, 2006
by
Huw Davies
Committed by
Alexandre Julliard
Oct 20, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oledlg: Initialize the pastelink list.
parent
905b598b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
0 deletions
+36
-0
pastespl.c
dlls/oledlg/pastespl.c
+36
-0
No files found.
dlls/oledlg/pastespl.c
View file @
f7d5f198
...
@@ -181,9 +181,45 @@ static DWORD init_pastelist(HWND hdlg, OLEUIPASTESPECIALW *ps)
...
@@ -181,9 +181,45 @@ static DWORD init_pastelist(HWND hdlg, OLEUIPASTESPECIALW *ps)
return
items_added
;
return
items_added
;
}
}
static
DWORD
init_linklist
(
HWND
hdlg
,
OLEUIPASTESPECIALW
*
ps
)
{
HRESULT
hr
;
DWORD
supported_mask
=
0
;
DWORD
items_added
=
0
;
int
link
,
req_fmt
;
FORMATETC
fmt
=
{
0
,
NULL
,
DVASPECT_CONTENT
,
-
1
,
-
1
};
for
(
link
=
0
;
link
<
ps
->
cLinkTypes
&&
link
<
PS_MAXLINKTYPES
;
link
++
)
{
fmt
.
cfFormat
=
ps
->
arrLinkTypes
[
link
];
hr
=
IDataObject_QueryGetData
(
ps
->
lpSrcDataObj
,
&
fmt
);
if
(
hr
==
S_OK
)
supported_mask
|=
1
<<
link
;
}
TRACE
(
"supported_mask %02x
\n
"
,
supported_mask
);
for
(
req_fmt
=
0
;
req_fmt
<
ps
->
cPasteEntries
;
req_fmt
++
)
{
DWORD
linktypes
;
if
(
ps
->
arrPasteEntries
[
req_fmt
].
dwFlags
&
OLEUIPASTE_LINKANYTYPE
)
linktypes
=
0xff
;
else
linktypes
=
ps
->
arrPasteEntries
[
req_fmt
].
dwFlags
&
0xff
;
if
(
linktypes
&
supported_mask
)
{
add_entry_to_lb
(
hdlg
,
IDC_PS_PASTELINKLIST
,
ps
->
arrPasteEntries
+
req_fmt
);
items_added
++
;
}
}
EnableWindow
(
GetDlgItem
(
hdlg
,
IDC_PS_PASTELINK
),
items_added
?
TRUE
:
FALSE
);
return
items_added
;
}
static
void
init_lists
(
HWND
hdlg
,
ps_struct_t
*
ps_struct
)
static
void
init_lists
(
HWND
hdlg
,
ps_struct_t
*
ps_struct
)
{
{
init_pastelist
(
hdlg
,
ps_struct
->
ps
);
init_pastelist
(
hdlg
,
ps_struct
->
ps
);
init_linklist
(
hdlg
,
ps_struct
->
ps
);
}
}
static
void
update_structure
(
HWND
hdlg
,
ps_struct_t
*
ps_struct
)
static
void
update_structure
(
HWND
hdlg
,
ps_struct_t
*
ps_struct
)
...
...
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