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
a67ad872
Commit
a67ad872
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: Logic for initial selection of paste/pastelink radio buttons.
parent
f7d5f198
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
2 deletions
+34
-2
pastespl.c
dlls/oledlg/pastespl.c
+34
-2
No files found.
dlls/oledlg/pastespl.c
View file @
a67ad872
...
...
@@ -218,8 +218,40 @@ static DWORD init_linklist(HWND hdlg, OLEUIPASTESPECIALW *ps)
static
void
init_lists
(
HWND
hdlg
,
ps_struct_t
*
ps_struct
)
{
init_pastelist
(
hdlg
,
ps_struct
->
ps
);
init_linklist
(
hdlg
,
ps_struct
->
ps
);
DWORD
pastes_added
=
init_pastelist
(
hdlg
,
ps_struct
->
ps
);
DWORD
links_added
=
init_linklist
(
hdlg
,
ps_struct
->
ps
);
UINT
check_id
,
list_id
;
if
((
ps_struct
->
flags
&
(
PSF_SELECTPASTE
|
PSF_SELECTPASTELINK
))
==
0
)
ps_struct
->
flags
|=
PSF_SELECTPASTE
;
if
(
!
pastes_added
&&
!
links_added
)
ps_struct
->
flags
&=
~
(
PSF_SELECTPASTE
|
PSF_SELECTPASTELINK
);
else
if
(
!
pastes_added
&&
(
ps_struct
->
flags
&
PSF_SELECTPASTE
))
{
ps_struct
->
flags
&=
~
PSF_SELECTPASTE
;
ps_struct
->
flags
|=
PSF_SELECTPASTELINK
;
}
else
if
(
!
links_added
&&
(
ps_struct
->
flags
&
PSF_SELECTPASTELINK
))
{
ps_struct
->
flags
&=
~
PSF_SELECTPASTELINK
;
ps_struct
->
flags
|=
PSF_SELECTPASTE
;
}
check_id
=
0
;
list_id
=
0
;
if
(
ps_struct
->
flags
&
PSF_SELECTPASTE
)
{
check_id
=
IDC_PS_PASTE
;
list_id
=
IDC_PS_PASTELIST
;
}
else
if
(
ps_struct
->
flags
&
PSF_SELECTPASTELINK
)
{
check_id
=
IDC_PS_PASTELINK
;
list_id
=
IDC_PS_PASTELINKLIST
;
}
CheckRadioButton
(
hdlg
,
IDC_PS_PASTE
,
IDC_PS_PASTELINK
,
check_id
);
}
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