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.

   InitWebCtrl();

      hwndWebCtrl = CreateWindow(
      "WebCtrl32",
      "http://www.codeguru.com/",
      WS_CHILD | WS_VISIBLE,
      0, 0, 200, 100,
      hwndParent,
      (HMENU) IDC_WEBCTRL,
      hInstance,
      NULL );

--- or ---

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

    case WM_INITDIALOG

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

Downloads

Download WebCtrl demo project source code - 138Kb



Comments

  • 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?

    Reply
  • 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

    Reply
  • 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.

    Reply
  • 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

    Reply
  • 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

    Reply
  • Beginner question..

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

    Originally posted by: Beginner

    How do I disable right-click??

    Reply
  • 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.

    Reply
  • Looks pretty nice...

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

    Originally posted by: BN

    Nice job.

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

Top White Papers and Webcasts

  • Live Event Date: August 20, 2014 @ 1:00 p.m. ET / 10:00 a.m. PT When you look at natural user interfaces as a developer, it isn't just fun and games. There are some very serious, real-world usage models of how things can help make the world a better place – things like Intel® RealSense™ technology. Check out this upcoming eSeminar and join the panel of experts, both from inside and outside of Intel, as they discuss how natural user interfaces will likely be getting adopted in a wide variety …

  • Available On-Demand Today's changing workforce dynamics, economic challenges, and technological advances are placing immense pressure on business leaders to turn their focus on people – their most valuable asset – in order to remain competitive. Research shows that a significant number of new employees quit within one year of taking a new job*. Whether it's through a merger and acquisition, or standard hiring process, like any first impression, early experiences shape their opinions of their new …

Most Popular Programming Stories

More for Developers

Latest Developer Headlines

RSS Feeds