IPB

Welcome Guest ( Log In | Register )



Tags
This content has not been tagged yet
 
Reply to this topicStart new topic

Web Browser

, I created one and it sucks...


Someone
no avatar
Premium Member
********
Group: Members
Posts: 158
Joined: 2-December 04
Member No.: 2,512



Post #1 post Jan 23 2005, 02:28 PM
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 page
file save page
and so
download ofkors
please 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);
}
//---------------------------------------------------------------------
Go to the top of the page
+Quote Post
LuciferStar
no avatar
Advanced Member
*******
Group: Members
Posts: 114
Joined: 9-August 04
From: Suzhou Jiangsu China
Member No.: 743



Post #2 post Jan 25 2005, 10:45 AM
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:
CODE
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();
}
Go to the top of the page
+Quote Post
Someone
no avatar
Premium Member
********
Group: Members
Posts: 158
Joined: 2-December 04
Member No.: 2,512



Post #3 post Jan 28 2005, 08:50 PM
QUOTE(LuciferStar @ Jan 25 2005, 11:45 AM)
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:
CODE
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();
}

[right][snapback]43151[/snapback][/right]



I don't have vc and I don't like IE biggrin.gif
Go to the top of the page
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

    Topic Title Replies Topic Starter Views Last Action
No New Posts 1 hasa 605 3rd August 2004 - 11:15 AM
Last post by: Shackman
No new   21 braitt 1,444 15th December 2008 - 03:11 AM
Last post by: xpress
No New Posts   8 grrlfromoz 383 23rd October 2004 - 07:05 AM
Last post by: X3r0X
No New Posts   4 timstokman 443 29th October 2004 - 09:44 PM
Last post by: timstokman
No new   810 jacob 37,862 6th November 2008 - 01:22 PM
Last post by: Deretto
No New Posts 1 Mechablitz 459 10th November 2004 - 07:17 PM
Last post by: melkonianarg
No New Posts   5 RGPHNX 583 24th December 2004 - 02:31 AM
Last post by: RGPHNX
No New Posts   3 Señor Maniac 359 28th January 2005 - 06:59 PM
Last post by: Galahad
No New Posts   9 Casanova 361 1st February 2005 - 12:52 PM
Last post by: Taupe
No New Posts   4 mrtruckster 123 3rd November 2008 - 10:46 PM
Last post by: minimcmonkey
No new   14 shadow skazi 1,826 9th March 2005 - 01:49 PM
Last post by: major9
No New Posts   2 guangdian 383 15th March 2005 - 11:01 AM
Last post by: darkmeca
No New Posts   12 Saint_Michael 748 8th January 2008 - 01:14 AM
Last post by: Carson
No new 89 heavensounds 10,318 20th November 2008 - 07:55 AM
Last post by: juwan
No New Posts   2 Raptrex 1,880 29th March 2005 - 03:02 AM
Last post by: One Shot 1


 



RSS Open Discussion Time is now: 10th January 2009 - 12:12 AM