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
f07bbbd4
Commit
f07bbbd4
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: Copy the appropiate list to the display list.
parent
a67ad872
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
0 deletions
+34
-0
pastespl.c
dlls/oledlg/pastespl.c
+34
-0
No files found.
dlls/oledlg/pastespl.c
View file @
f07bbbd4
...
...
@@ -216,6 +216,35 @@ static DWORD init_linklist(HWND hdlg, OLEUIPASTESPECIALW *ps)
return
items_added
;
}
/* copies src_list_id into the display list */
static
void
update_display_list
(
HWND
hdlg
,
UINT
src_list_id
)
{
LONG
count
,
i
,
old_pos
;
WCHAR
txt
[
256
];
LONG
item_data
;
HWND
display_list
=
GetDlgItem
(
hdlg
,
IDC_PS_DISPLAYLIST
);
HWND
list
=
GetDlgItem
(
hdlg
,
src_list_id
);
old_pos
=
SendMessageW
(
display_list
,
LB_GETCURSEL
,
0
,
0
);
if
(
old_pos
==
-
1
)
old_pos
=
0
;
SendMessageW
(
display_list
,
WM_SETREDRAW
,
0
,
0
);
SendMessageW
(
display_list
,
LB_RESETCONTENT
,
0
,
0
);
count
=
SendMessageW
(
list
,
LB_GETCOUNT
,
0
,
0
);
for
(
i
=
0
;
i
<
count
;
i
++
)
{
SendMessageW
(
list
,
LB_GETTEXT
,
i
,
(
LPARAM
)
txt
);
item_data
=
SendMessageW
(
list
,
LB_GETITEMDATA
,
i
,
0
);
SendMessageW
(
display_list
,
LB_INSERTSTRING
,
i
,
(
LPARAM
)
txt
);
SendMessageW
(
display_list
,
LB_SETITEMDATA
,
i
,
item_data
);
}
old_pos
=
max
(
old_pos
,
count
);
SendMessageW
(
display_list
,
LB_SETCURSEL
,
0
,
0
);
SendMessageW
(
display_list
,
WM_SETREDRAW
,
1
,
0
);
if
(
GetForegroundWindow
()
==
hdlg
)
SetFocus
(
display_list
);
}
static
void
init_lists
(
HWND
hdlg
,
ps_struct_t
*
ps_struct
)
{
DWORD
pastes_added
=
init_pastelist
(
hdlg
,
ps_struct
->
ps
);
...
...
@@ -252,6 +281,11 @@ static void init_lists(HWND hdlg, ps_struct_t *ps_struct)
}
CheckRadioButton
(
hdlg
,
IDC_PS_PASTE
,
IDC_PS_PASTELINK
,
check_id
);
if
(
list_id
)
update_display_list
(
hdlg
,
list_id
);
else
EnableWindow
(
GetDlgItem
(
hdlg
,
IDOK
),
0
);
}
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