在下近日在vc下做一个编辑html的小软件,功能不用太多,需要能如同frontpage那样能够从文件中粘贴位图图片,那位大侠能帮忙?

解决方案 »

  1.   

    Note:Visual C++ .Net requiredVisual C++ MFC Samples   HTMLEdit Sample: Wraps the Internet Explorer MSHTML Editing ControlSee Also
    MFC Samples
    The HTMLEdit sample shows how to use the MFC classes that wrap the Internet Explorer WebBrowser ActiveX control. In editing mode, the WebBrowser ActiveX control exposes what you see is what you get (WYSIWYG) editing functionality. The MFC and libraries provide classes that host the MSHTML editing control in a window class and provide convenient wrapper classes for the control's properties, methods, and events.For more information on the Web Browser ActiveX control, see Reusing Browser Technology in Web Workshop.Requirements
    You must install Internet Explorer version 5 or later to get the proper editing functionality in the WebBrowser ActiveX control.Building and Running the Sample
    To build and run the HTMLEdit sample Open the solution HTMLEdit.sln. 
    On the Build menu, click Build. 
    Run the HTMLEdit application. 
    HTMLEdit opens a simple SDI application similar in appearance to Notepad. The user can enter text in the view and then apply different HTML formats using either the toolbar or by hand.Keywords
    This sample demonstrates the following keywords:CHtmlEditView, CHtmlEditDocNote   Some samples, such as this one, have not been modified to reflect the changes in the Visual C++ wizards, libraries, and compiler, but still demonstrate how to complete your desired task. 
    See Also
    MFC Samples
      

  2.   

    老哥原来是抄msdn呀,不过,还是提醒了我,谢了!我还是会给你分的.