ovidiucucu
October 23rd, 2011, 06:07 AM
Q: How to make a simple Web Browser?
A: MFC AppWizard can help you to create a basic Internet Browser in less than one minute.
Here are the steps to follow:
Visual C++ 6.0
choose "File/New/Project" menu item or press "Ctrl+N";
in "New" dialog box, type the project name and choose "MFC AppWizard(exe)";
push "OK" button; the "MFC Application Wizard" appears;
in MFC AppWizard - Step 1: select "Single document" then push "Next" button;
in MFC AppWizard - Step 2 to 5: push "Next" button;
in MFC AppWizard - Step 6: change the base class of view from default "CView" to "CHtmlView";
push "Finish" button; the "New Project Information" dialog appears;
push "OK" button.
Visual C++ 2002/2003/2005/2008/2010
choose "File/New/Project" menu item or press "Ctrl+Shift+N";
in "New Project" dialog box, type the project name, then choose "Visual C++ Projects/MFC" and "MFC Application;
push "OK" button; the "MFC Application Wizard" appears;
select Application type "Single document";
select from the left list "Generated Classes" item and change the base class for the view from default "CView" to "CHtmlView";
push "Finish" button.
Further, if you want, you can enjoy improving it by adding features like an address bar and so on.
See also:
How to make a simple text editor? (http://www.codeguru.com/forum/showthread.php?t=375000)
A: MFC AppWizard can help you to create a basic Internet Browser in less than one minute.
Here are the steps to follow:
Visual C++ 6.0
choose "File/New/Project" menu item or press "Ctrl+N";
in "New" dialog box, type the project name and choose "MFC AppWizard(exe)";
push "OK" button; the "MFC Application Wizard" appears;
in MFC AppWizard - Step 1: select "Single document" then push "Next" button;
in MFC AppWizard - Step 2 to 5: push "Next" button;
in MFC AppWizard - Step 6: change the base class of view from default "CView" to "CHtmlView";
push "Finish" button; the "New Project Information" dialog appears;
push "OK" button.
Visual C++ 2002/2003/2005/2008/2010
choose "File/New/Project" menu item or press "Ctrl+Shift+N";
in "New Project" dialog box, type the project name, then choose "Visual C++ Projects/MFC" and "MFC Application;
push "OK" button; the "MFC Application Wizard" appears;
select Application type "Single document";
select from the left list "Generated Classes" item and change the base class for the view from default "CView" to "CHtmlView";
push "Finish" button.
Further, if you want, you can enjoy improving it by adding features like an address bar and so on.
See also:
How to make a simple text editor? (http://www.codeguru.com/forum/showthread.php?t=375000)