Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-fonts
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
Aleksandr Isakov
wine-fonts
Commits
1d9e48c7
Commit
1d9e48c7
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: Handle paste / link mode change.
parent
aa9fdd06
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
0 deletions
+28
-0
pastespl.c
dlls/oledlg/pastespl.c
+28
-0
No files found.
dlls/oledlg/pastespl.c
View file @
1d9e48c7
...
...
@@ -362,6 +362,23 @@ static void selection_change(HWND hdlg, ps_struct_t *ps_struct)
update_result_text
(
hdlg
,
ps_struct
);
}
static
void
mode_change
(
HWND
hdlg
,
ps_struct_t
*
ps_struct
,
UINT
id
)
{
if
(
id
==
IDC_PS_PASTE
)
{
ps_struct
->
flags
&=
~
PSF_SELECTPASTELINK
;
ps_struct
->
flags
|=
PSF_SELECTPASTE
;
}
else
{
ps_struct
->
flags
&=
~
PSF_SELECTPASTE
;
ps_struct
->
flags
|=
PSF_SELECTPASTELINK
;
}
update_display_list
(
hdlg
,
id
==
IDC_PS_PASTE
?
IDC_PS_PASTELIST
:
IDC_PS_PASTELINKLIST
);
selection_change
(
hdlg
,
ps_struct
);
}
static
void
post_help_msg
(
HWND
hdlg
,
ps_struct_t
*
ps_struct
)
{
PostMessageW
(
ps_struct
->
ps
->
hWndOwner
,
oleui_msg_help
,
(
WPARAM
)
hdlg
,
IDD_PASTESPECIAL
);
...
...
@@ -437,6 +454,17 @@ static INT_PTR CALLBACK ps_dlg_proc(HWND hdlg, UINT msg, WPARAM wp, LPARAM lp)
default:
return
FALSE
;
}
case
IDC_PS_PASTE
:
case
IDC_PS_PASTELINK
:
switch
(
HIWORD
(
wp
))
{
case
BN_CLICKED
:
mode_change
(
hdlg
,
ps_struct
,
LOWORD
(
wp
));
return
FALSE
;
default:
return
FALSE
;
}
case
IDC_OLEUIHELP
:
switch
(
HIWORD
(
wp
))
{
...
...
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