From: David Ching on
".rhavin grobert" <clqrq(a)yahoo.de> wrote in message
news:1158457112.430630.57220(a)m73g2000cwd.googlegroups.com...
> I really understand your position, but when i tell MY system to not
> animate gifs in HTML context, i want MY system to do as I told, not as
> the programmer of the application running on MY system intendet. If you
> want to show me a progress, use a progress-control. An animated gif
> without programm-defined progress-change is just an optical gimmic that
> some users DONT WANT.
>
> Thats why i really hope that what you want to do is impossible.
>

Well, I would bet that when you set don't "animate gifs in HTML context"
I'll bet you were talking about the browsing the Internet. The fact that my
app happens to render using HTML content is not really the issue. The issue
is: the settings for IE browser should be separate from the IE control.

Microsoft already lets the IE control behave differently with the
SetHostFlags() API. For example, in the Control Panel there is a setting,
"Enable visual styles on buttons and controls in web pages", and there is a
SetHostFlags(DOCHOSTUIFLAG_THEME) which you can call to override this.
Microsoft just needs to enhance this API with a few more flags, e.g.
DOCHOSTUIFLAG_ANIMATION.

-- David


From: jiangsheng[MVP] on
you may be able to override the setting by providing an alternative registry
path in IDocHostUIHandler::GetOptionKeyPath or
IDocHostUIHandler2::GetOverrideKeyPath Method.
Reference
http://msdn.microsoft.com/workshop/browser/hosting/wbcustomization.asp

--
Regards
Sheng Jiang

Microsoft Most Valuable Professional in Visual C++
http://www.jiangsheng.net
http://blog.joycode.com/jiangsheng/
"David Ching" <dc(a)remove-this.dcsoft.com> ??????
news:RbUOg.2294$IA.2224(a)newssvr11.news.prodigy.com...
> Hello,
>
> If user has disabled "play animations in web pages" in the Control Panel,
> Internet Options, Advanced tab, then any animated .gif images I display in
> my Web Browser Control (actually it's an MFC CDHtmlDialog) don't animate.
>
> Is there a way I can override the user's IE setting and get my Web Browser
> Control to animate the gifs? To initialize the dialog, I'm already
calling:
>
> DOCHOSTUIINFO info;
> info.cbSize = sizeof(info);
> GetHostInfo (&info);
> SetHostFlags (info.dwFlags | DOCHOSTUIFLAG_DIALOG | DOCHOSTUIFLAG_THEME |
> DOCHOSTUIFLAG_SCROLL_NO);
>
> Thanks,
> David
>
>


From: David Ching on

"jiangsheng[MVP]" <sheng_jiang(a)hotmail.com.discuss> wrote in message
news:eS3aMFr4GHA.1248(a)TK2MSFTNGP03.phx.gbl...
> you may be able to override the setting by providing an alternative
> registry
> path in IDocHostUIHandler::GetOptionKeyPath or
> IDocHostUIHandler2::GetOverrideKeyPath Method.
> Reference
> http://msdn.microsoft.com/workshop/browser/hosting/wbcustomization.asp
>

Thank you, I'll give it a try and let you know what I find. I'm not sure
it's convenient to override IDocHostUIHandler2 from a MFC CDhtmlDialog.

-- David


First  |  Prev  | 
Pages: 1 2
Prev: Problem calling RegGetValue
Next: Manifest file