Jump to content
xisto Community
Sign in to follow this  
Someone

Web Browser I created one and it sucks...

Recommended Posts

I can really say that browser that I have created sucks, I don't know how to create uncoding, font, should I use windows font from windows directory or what? Almost all pages don't want to open corectly or don't want at all, please help, I need to solve uncoding file-new pagefile save pageand sodownload ofkorsplease give me some examples of doing this just a few one thanks this is the code: //----------------------------------------------------------------------------//Broko Browser Created by Someone(SmartPortal)//----------------------------------------------------------------------------//---------------------------------------------------------------------------#include <vcl\vcl.h>#pragma hdrstop#include "main.h"#include "DocSrc.h"//---------------------------------------------------------------------------#pragma resource "*.dfm"TForm1 *Form1;//---------------------------------------------------------------------------__fastcall TForm1::TForm1(TComponent* Owner) : TForm(Owner){}//---------------------------------------------------------------------------void __fastcall TForm1::HTML1EndRetrieval(TObject *Sender){ CancelBtn->Enabled = True;}//---------------------------------------------------------------------void __fastcall TForm1::HTML1BeginRetrieval(TObject *Sender){ CancelBtn->Enabled = True;}//---------------------------------------------------------------------void __fastcall TForm1::Exit1Click(TObject *Sender){ Close();}//---------------------------------------------------------------------void __fastcall TForm1::DocumentSource1Click(TObject *Sender){ DocSourceFrm->Show(); DocSourceFrm->Memo1->Lines->Clear(); DocSourceFrm->Memo1->Lines->Add(HTML1->SourceText); DocSourceFrm->Memo1->SelStart = 0; SendMessage((HWND)DocSourceFrm->Memo1->Handle, EM_SCROLLCARET, 0, 0);}//---------------------------------------------------------------------void __fastcall TForm1::CancelBtnClick(TObject *Sender){ HTML1->Cancel("test"); CancelBtn->Enabled = True;}//---------------------------------------------------------------------void __fastcall TForm1::GoButtonClick(TObject *Sender){ if(URLs->Items->IndexOf(URLs->Text) == -1 ) URLs->Items->Add(URLs->Text); HTML1->RequestDoc(URLs->Text); Statusbar1->Panels->Items[0]->Text = HTML1->RequestURL;}//---------------------------------------------------------------------void __fastcall TForm1::URLsKeyPress(TObject *Sender, Char &Key){ if(Key == VK_RETURN) GoButtonClick(Sender);}//---------------------------------------------------------------------

Share this post


Link to post
Share on other sites

I've made one.
I want to know how to do others, too!
in VC++6.0,just addon an IE plugin,then add some codes like this:

void CIEDlg::OnButton2() {	// TODO: Add your control notification handler code here	m_IE.GoBack();}void CIEDlg::OnButton3() {	// TODO: Add your control notification handler code here	m_IE.GoForward ();}void CIEDlg::OnButton4() {	// TODO: Add your control notification handler code here	m_IE.GoSearch ();}void CIEDlg::OnButton6() {	// TODO: Add your control notification handler code here	m_IE.Stop ();}void CIEDlg::OnButton7() {	// TODO: Add your control notification handler code here	m_IE.GoHome ();}void CIEDlg::OnButton8() {	// TODO: Add your control notification handler code here	COpenUrl OURL;	OURL.m_URL="http://";	if(OURL.DoModal() == IDOK) 	{  SetDlgItemText(IDC_STATIC1,OURL.m_URL);  m_IE.Navigate(OURL.m_URL,0,NULL,NULL,NULL);	}	}void CIEDlg::OnButton5() {	// TODO: Add your control notification handler code here	m_IE.Refresh();}

Share this post


Link to post
Share on other sites

I've made one.

I want to know how to do others, too!

in VC++6.0,just addon an IE plugin,then add some codes like this:

void CIEDlg::OnButton2() {	// TODO: Add your control notification handler code here	m_IE.GoBack();}void CIEDlg::OnButton3() {	// TODO: Add your control notification handler code here	m_IE.GoForward ();}void CIEDlg::OnButton4() {	// TODO: Add your control notification handler code here	m_IE.GoSearch ();}void CIEDlg::OnButton6() {	// TODO: Add your control notification handler code here	m_IE.Stop ();}void CIEDlg::OnButton7() {	// TODO: Add your control notification handler code here	m_IE.GoHome ();}void CIEDlg::OnButton8() {	// TODO: Add your control notification handler code here	COpenUrl OURL;	OURL.m_URL="http://";	if(OURL.DoModal() == IDOK) 	{  SetDlgItemText(IDC_STATIC1,OURL.m_URL);  m_IE.Navigate(OURL.m_URL,0,NULL,NULL,NULL);	}	}void CIEDlg::OnButton5() {	// TODO: Add your control notification handler code here	m_IE.Refresh();}

43151[/snapback]


I don't have vc and I don't like IE :P

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.