Programming with Microsoft Visual C++.NET 6ed [Electronic resources] نسخه متنی

اینجــــا یک کتابخانه دیجیتالی است

با بیش از 100000 منبع الکترونیکی رایگان به زبان فارسی ، عربی و انگلیسی

Programming with Microsoft Visual C++.NET 6ed [Electronic resources] - نسخه متنی

George Shepherd, David Kruglinski

| نمايش فراداده ، افزودن یک نقد و بررسی
افزودن به کتابخانه شخصی
ارسال به دوستان
جستجو در متن کتاب
بیشتر
تنظیمات قلم

فونت

اندازه قلم

+ - پیش فرض

حالت نمایش

روز نیمروز شب
جستجو در لغت نامه
بیشتر
توضیحات
افزودن یادداشت جدید








The Ex29a Example: MFC and DHTML


MFC's support for DHTML starts with a new CView derivative, CHtmlView. CHtmlView allows you to embed an HTML view inside frame windows or splitter windows, and with some DHTML work it can act as a dynamic form. Example Ex29a demonstrates how to use the new CHtmlView class in a vanilla MDI application.

Follow these steps to create the Ex29a example:



  1. Run the MFC Application Wizard and create the Ex29a project. Make the project an SDI application. Accept all the other defaults, except select CHtmlView as the base class on the Generated Classes page.



  2. Edit the URL to be loaded. In the CEx29aView::OnInitialUpdate function, you'll see this line:

    Navigate2(_T("http://www.msdn.microsoft.com/visualc/"),NULL,NULL);

    You can edit this line to have the application load a local page or a URL other than the Visual C++ .NET page.



  3. Compile and run the application. Figure 29-3 shows the application running with the default Web page.


    Figure 29-3: The Ex29a example.




/ 319