Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
S

sdc395

@sdc395
About
Posts
4
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • how to disable double click event on a button.
    S sdc395

    How about simply removing the double click style from the window's class?

    BOOL YourButtonClass::PreCreateWindow(CREATESTRUCT &cs)
    {
    WNDCLASS wndClass = { 0 };

    GetClassInfo(NULL, cs.lpszClass, &wndClass);

    wndClass.style &= ~CS_DBLCLKS;
    wndClass.lpszClassName = _T("BUTTON-DBLCLKS");

    if (AfxRegisterClass(&wndClass))
    {
    cs.lpszClass = wndClass.lpszClassName;
    }

    return __super::PreCreateWindow(cs);
    }

    C / C++ / MFC tutorial

  • WebBrowser Control - intercept requests [modified]
    S sdc395

    Well, in case anyone stumbles across this post, I thought I'd let you know how I solved my problem (well, this one anyway)... Turns out a pluggable protocol is the solution. The basics are easy to write and, critically, they can be registered on a per-process basis. I invented my own URL scheme, implemented an APP for it, registered my APP class factory using CoInternetGetSession and IInternetSession::RegisterNameSpace and away I went. The UI is now "served" via my own URL scheme by my own APP on a per-process basis.

    COM javascript html css graphics design

  • How to get image from IHTMLImgElement ?
    S sdc395

    Take a look at IHTMLElementRender which you should be able to query the IHTMLImgElement for. This interface has a DrawToDC method that you could use to render the element to a DC of your own creation.

    COM question tutorial announcement

  • WebBrowser Control - intercept requests [modified]
    S sdc395

    Hi all I've searched and searched but I can't find a method that will enable me to intercept requests from a WebBrowser control and then provide my own, programmatically generated responses. Currently, my application uses the control to provide 90% of the UI by loading HTML, CSS and Javascript from disc using the "file" protocol. The scripts then call my app's dispatch interface to make things happen. What I would like to be able to do is effectively serve these files without coding my own HTTP server. I'm hoping there's a point at which I can intercept the WebBrowser's request and then write my own response back to it. This response will usual consist of the contents of a file extracted from an archive or from the app's resources. I would also like to be able to spot requests for images (by parsing the URL) so that I can render SVG graphics to a file as a PNG (or similar) and stream that file back to the browser. So, is there some interface I can implement and supply to the browser in order to achieve the above? As I said, I'd like to avoid writing my own HTTP server or Asynchronous Pluggable Protocol handler. Thanks in advance Simon

    modified on Friday, January 30, 2009 10:56 AM (typo)

    COM javascript html css graphics design
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups