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
feeaf9c2
Commit
feeaf9c2
authored
Oct 19, 2006
by
Huw Davies
Committed by
Alexandre Julliard
Oct 20, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oledlg: Update the source text.
parent
8711d5e6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
0 deletions
+26
-0
pastespl.c
dlls/oledlg/pastespl.c
+26
-0
No files found.
dlls/oledlg/pastespl.c
View file @
feeaf9c2
...
...
@@ -364,6 +364,29 @@ static void init_lists(HWND hdlg, ps_struct_t *ps_struct)
EnableWindow
(
GetDlgItem
(
hdlg
,
IDOK
),
0
);
}
static
void
update_src_text
(
HWND
hdlg
,
ps_struct_t
*
ps_struct
)
{
WCHAR
*
str
;
if
(
ps_struct
->
flags
&
PSF_SELECTPASTE
)
{
if
(
ps_struct
->
source_name
)
str
=
ps_struct
->
source_name
;
else
str
=
ps_struct
->
link_source_name
;
}
else
{
if
(
ps_struct
->
link_source_name
)
str
=
ps_struct
->
link_source_name
;
else
str
=
ps_struct
->
source_name
;
}
SetDlgItemTextW
(
hdlg
,
IDC_PS_SOURCETEXT
,
str
);
}
static
void
update_as_icon
(
HWND
hdlg
,
ps_struct_t
*
ps_struct
)
{
HWND
icon_display
=
GetDlgItem
(
hdlg
,
IDC_PS_ICONDISPLAY
);
...
...
@@ -449,6 +472,7 @@ static void mode_change(HWND hdlg, ps_struct_t *ps_struct, UINT id)
ps_struct
->
flags
|=
PSF_SELECTPASTELINK
;
}
update_src_text
(
hdlg
,
ps_struct
);
update_display_list
(
hdlg
,
id
==
IDC_PS_PASTE
?
IDC_PS_PASTELIST
:
IDC_PS_PASTELINKLIST
);
selection_change
(
hdlg
,
ps_struct
);
}
...
...
@@ -537,6 +561,8 @@ static INT_PTR CALLBACK ps_dlg_proc(HWND hdlg, UINT msg, WPARAM wp, LPARAM lp)
init_lists
(
hdlg
,
ps_struct
);
update_src_text
(
hdlg
,
ps_struct
);
selection_change
(
hdlg
,
ps_struct
);
SetFocus
(
GetDlgItem
(
hdlg
,
IDC_PS_DISPLAYLIST
));
...
...
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