Web Custom Control

Environment: Microsoft Visual C++

Click here for larger image

Web Custom Control

Here is an easy to use web control which can be created using CreateWindow() or as a CONTROL in a dialog template script.


      hwndWebCtrl = CreateWindow(
      0, 0, 200, 100,
      NULL );

--- or ---

CONTROL "", IDC_WEBCTRL, "WebCtrl32",0x0,8,8,264,160


	SetDlgItemText( hdlg, 
                        "http://www.codeguru.com/" );


Download WebCtrl demo project source code - 138Kb


  • IE Tool Bar

    Posted by Legacy on 01/05/2004 12:00am

    Originally posted by: charles Godwin

    Is there any way to enable the IE toolbar in this window?

  • Thank you so much!!

    Posted by Legacy on 07/03/2003 12:00am

    Originally posted by: Je Jung Min

    It's very useful for me

  • Exactly what I've looked for

    Posted by Legacy on 06/25/2003 12:00am

    Originally posted by: Sonin Nickolay

    It saves me a lot of time and brain :) Thanks for this solution.

  • how response WM_KEYDOWN message,

    Posted by Legacy on 12/12/2002 12:00am

    Originally posted by: sosjudy

    i want to overloading WM_KEYDOWN message ,

    thank you very much

    good luck

  • Just what i was looking for... Thanks a ton

    Posted by Legacy on 07/24/2002 12:00am

    Originally posted by: ape

    Just what i was looking for... Thanks a ton

    I just added WS_DISABLED in the CreateWindow style, to avoid the mouse and key board interaction. Just to have a control to show HTML pages.

    It helps me in creating dialog boxes with customizable graphics..

    Good Work

  • Beginner question..

    Posted by Legacy on 05/09/2002 12:00am

    Originally posted by: Beginner

    How do I disable right-click??

  • so simple & useful

    Posted by Legacy on 01/25/2002 12:00am

    Originally posted by: bryan choi

    i'll make a job with this.
    with adding IDocHostUIHandler.

  • Looks pretty nice...

    Posted by Legacy on 01/25/2002 12:00am

    Originally posted by: BN

    Nice job.

Leave a Comment
  • Your email address will not be published. All fields are required.

Top White Papers and Webcasts

  • Power and Automation Equipment makers face constrained CAPEX, equipment interoperability issues, and process inefficiencies. However, they can take advantage of secure Internet of Things (IoT) intelligent devices and systems to make better business decisions around asset utilization and performance, while simultaneously optimizing equipment interoperability and services efficiency. Watch this brief video to see how you can unlock the full potential of your assets and value chain.

  • Lenovo recommends Windows 8 Pro. "I dropped my laptop getting out of the taxi." This probably sounds familiar to most IT professionals. If your employees are traveling, you know their devices are in for a rough go. Whether it's a trip to the conference room or a convention out of town, any time equipment leaves a user's desk it is at risk of being put into harm's way. Stay connected at all times, whether at the office or on the go, with agile, durable, and flexible devices like the Lenovo® …

Most Popular Programming Stories

More for Developers

RSS Feeds

Thanks for your registration, follow us on our social networks to keep up-to-date