|
|
|
|
![]() ![]() |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members
Posts: 158 Joined: 2-December 04 Member No.: 2,512 |
Post
#1
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); } //--------------------------------------------------------------------- |
![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members
Posts: 114 Joined: 9-August 04 From: Suzhou Jiangsu China Member No.: 743 |
Post
#2
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(); } |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members
Posts: 158 Joined: 2-December 04 Member No.: 2,512 |
Post
#3
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 |
![]() ![]() |
Similar Topics
| Topic Title | Replies | Topic Starter | Views | Last Action | |||
|---|---|---|---|---|---|---|---|
![]() |
1 | hasa | 605 | 3rd August 2004 - 11:15 AM Last post by: Shackman |
|||
![]() |
21 | braitt | 1,444 | 15th December 2008 - 03:11 AM Last post by: xpress |
|||
![]() |
8 | grrlfromoz | 383 | 23rd October 2004 - 07:05 AM Last post by: X3r0X |
|||
![]() |
4 | timstokman | 443 | 29th October 2004 - 09:44 PM Last post by: timstokman |
|||
![]() |
810 | jacob | 37,862 | 6th November 2008 - 01:22 PM Last post by: Deretto |
|||
![]() |
1 | Mechablitz | 459 | 10th November 2004 - 07:17 PM Last post by: melkonianarg |
|||
![]() |
5 | RGPHNX | 583 | 24th December 2004 - 02:31 AM Last post by: RGPHNX |
|||
![]() |
3 | Señor Maniac | 359 | 28th January 2005 - 06:59 PM Last post by: Galahad |
|||
![]() |
9 | Casanova | 361 | 1st February 2005 - 12:52 PM Last post by: Taupe |
|||
![]() |
4 | mrtruckster | 123 | 3rd November 2008 - 10:46 PM Last post by: minimcmonkey |
|||
![]() |
14 | shadow skazi | 1,826 | 9th March 2005 - 01:49 PM Last post by: major9 |
|||
![]() |
2 | guangdian | 383 | 15th March 2005 - 11:01 AM Last post by: darkmeca |
|||
![]() |
12 | Saint_Michael | 748 | 8th January 2008 - 01:14 AM Last post by: Carson |
|||
![]() |
89 | heavensounds | 10,318 | 20th November 2008 - 07:55 AM Last post by: juwan |
|||
![]() |
2 | Raptrex | 1,880 | 29th March 2005 - 03:02 AM Last post by: One Shot 1 |
|||
|
Open Discussion | Time is now: 10th January 2009 - 12:12 AM |