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
20d77432
Commit
20d77432
authored
Jun 10, 2007
by
Jacek Caban
Committed by
Alexandre Julliard
Jun 11, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Move Exec(OLECMDID_SETTITLE) call to separated function and use it in on_timer.
parent
d8e518eb
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
34 additions
and
12 deletions
+34
-12
mshtml_private.h
dlls/mshtml/mshtml_private.h
+1
-0
persist.c
dlls/mshtml/persist.c
+1
-0
task.c
dlls/mshtml/task.c
+3
-12
view.c
dlls/mshtml/view.c
+29
-0
No files found.
dlls/mshtml/mshtml_private.h
View file @
20d77432
...
...
@@ -388,6 +388,7 @@ extern const cmdtable_t editmode_cmds[];
#define UPDATE_TITLE 0x0002
void
update_doc
(
HTMLDocument
*
This
,
DWORD
flags
);
void
update_title
(
HTMLDocument
*
);
/* editor */
void
set_ns_editmode
(
NSContainer
*
);
...
...
dlls/mshtml/persist.c
View file @
20d77432
...
...
@@ -153,6 +153,7 @@ static HRESULT set_moniker(HTMLDocument *This, IMoniker *mon, IBindCtx *pibc, BO
This
->
readystate
=
READYSTATE_LOADING
;
call_property_onchanged
(
This
->
cp_propnotif
,
DISPID_READYSTATE
);
update_doc
(
This
,
UPDATE_TITLE
);
HTMLDocument_LockContainer
(
This
,
TRUE
);
...
...
dlls/mshtml/task.c
View file @
20d77432
...
...
@@ -155,6 +155,8 @@ static void set_parsecomplete(HTMLDocument *doc)
IOleCommandTarget_Exec
(
olecmd
,
&
CGID_MSHTML
,
IDM_PARSECOMPLETE
,
0
,
NULL
,
NULL
);
IOleCommandTarget_Exec
(
olecmd
,
NULL
,
OLECMDID_HTTPEQUIV_DONE
,
0
,
NULL
,
NULL
);
IOleCommandTarget_Release
(
olecmd
);
}
doc
->
readystate
=
READYSTATE_COMPLETE
;
...
...
@@ -165,18 +167,7 @@ static void set_parsecomplete(HTMLDocument *doc)
IOleInPlaceFrame_SetStatusText
(
doc
->
frame
,
wszDone
);
}
if
(
olecmd
)
{
VARIANT
title
;
WCHAR
empty
[]
=
{
0
};
V_VT
(
&
title
)
=
VT_BSTR
;
V_BSTR
(
&
title
)
=
SysAllocString
(
empty
);
IOleCommandTarget_Exec
(
olecmd
,
NULL
,
OLECMDID_SETTITLE
,
OLECMDEXECOPT_DONTPROMPTUSER
,
&
title
,
NULL
);
SysFreeString
(
V_BSTR
(
&
title
));
IOleCommandTarget_Release
(
olecmd
);
}
update_title
(
doc
);
}
static
void
set_progress
(
HTMLDocument
*
doc
)
...
...
dlls/mshtml/view.c
View file @
20d77432
...
...
@@ -104,6 +104,34 @@ void update_doc(HTMLDocument *This, DWORD flags)
This
->
update
|=
flags
;
}
void
update_title
(
HTMLDocument
*
This
)
{
IOleCommandTarget
*
olecmd
;
HRESULT
hres
;
if
(
!
(
This
->
update
&
UPDATE_TITLE
))
return
;
This
->
update
&=
~
UPDATE_TITLE
;
if
(
!
This
->
client
)
return
;
hres
=
IOleClientSite_QueryInterface
(
This
->
client
,
&
IID_IOleCommandTarget
,
(
void
**
)
&
olecmd
);
if
(
SUCCEEDED
(
hres
))
{
VARIANT
title
;
WCHAR
empty
[]
=
{
0
};
V_VT
(
&
title
)
=
VT_BSTR
;
V_BSTR
(
&
title
)
=
SysAllocString
(
empty
);
IOleCommandTarget_Exec
(
olecmd
,
NULL
,
OLECMDID_SETTITLE
,
OLECMDEXECOPT_DONTPROMPTUSER
,
&
title
,
NULL
);
SysFreeString
(
V_BSTR
(
&
title
));
IOleCommandTarget_Release
(
olecmd
);
}
}
static
LRESULT
on_timer
(
HTMLDocument
*
This
)
{
TRACE
(
"(%p) %x
\n
"
,
This
,
This
->
update
);
...
...
@@ -131,6 +159,7 @@ static LRESULT on_timer(HTMLDocument *This)
}
}
update_title
(
This
);
This
->
update
=
0
;
return
0
;
}
...
...
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