Re: WebControl using embedded graphics via custom protocol
Jens Sorensen <jenslsorensen-/[email protected]>
| Newsgroups | gmane.comp.windows.wtl |
|---|---|
| Message-ID | <[email protected]> |
Hi, You can implement your own protocol similar to res, ftp etc by registering your protocol under HKEY_CLASSES_ROOT\PROTOCOLS\Handler then proceed with implementing IInternetProtocol http://msdn.microsoft.com/en-us/library/aa767883(VS.85).aspx IInternetProtocolSink http://msdn.microsoft.com/en-us/library/aa767768(VS.85).aspx You can find some info on MSDN about Asynchronous Pluggable Protocols at this location http://msdn.microsoft.com/en-us/library/aa767743(VS.85).aspx Implementing your own protocol gives you a great deal of flexibility but I think the res: protocol should go a long way for what you are trying to do. For temporary pluggable portorocol check out out this interface IInternetSession interface http://msdn.microsoft.com/en-us/library/aa767757(VS.85).aspx Hope this helps Thanks Jens Sorensen ________________________________ From: roarkfan <roarkfan-/[email protected]> To: [email protected] Sent: Sunday, March 29, 2009 8:20:43 PM Subject: [wtl] WebControl using embedded graphics via custom protocol Dear all, I've been searching for a while for how to do something that every application from Adobe Photoshop to Microsoft Studio do all the time: use the IE/WebControl to display a welcome or "get started" page, or for that matter, like MS Money, draw the whole interface. I've seen that the res:// protocol might work but I don't really want to be limited to extracting resources. I could always embed a small http server but that isn't really what I want to do either. I've seen some posts about PassThruAGG - Igor, I think you're on this list? - and that looks very promising. I think what would be good would be to register a temporary protocol in my exe, something like app://html/index. html (which might refer to javascript and image files too). Or it could hook http, e.g. http://app/index. html. I'd have a lookup of sorts that would either pull the data from memory or generate it on the fly. I don't want to extract files to disk and serve them that way. Apart from being messy, I recall that IE has restrictions (e.g. javascript) on what it will do from local files. I haven't been able to find the PassThruAPP. zip file, and I was hoping that someone here has a demo of something like this in WTL already. Any takers? Thanks! RF [Non-text portions of this message have been removed] ------------------------------------ Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/wtl/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/wtl/join (Yahoo! ID required) <*> To change settings via email: mailto:[email protected] mailto:[email protected] <*> To unsubscribe from this group, send an email to: [email protected] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/