Yuav Tsim Lub Vev Xaib Hauv Xyoo Li Cas

Cov txheej txheem:

Yuav Tsim Lub Vev Xaib Hauv Xyoo Li Cas
Yuav Tsim Lub Vev Xaib Hauv Xyoo Li Cas

Video: Yuav Tsim Lub Vev Xaib Hauv Xyoo Li Cas

Video: Yuav Tsim Lub Vev Xaib Hauv Xyoo Li Cas
Video: nkauj ntseeg lub qhov tuag loj ua luaj neeg nkag npaum li cas lo nkag tsi puv ntxawm yaj 2024, Kaum ib hlis
Anonim

Coob tus neeg xav tsim lawv tus kheej browser, tab sis qhov no tsis yooj yim li nws zoo li. Kev paub txog cov lus programming yuav pab tsim daim ntawv thov no. Nrog lawv, koj tuaj yeem tsim kho tag nrho cov browser nrog ntau cov haujlwm.

Yuav tsim lub web browser li cas
Yuav tsim lub web browser li cas

Cov Lus Qhia

Kauj ruam 1

Sim tsim lub browser siv Borland C ++ version 6.0. Tsis tas yuav tsum sau lub cav ntawm no, nws txaus siv cov ntawv npaj ua los ntawm Internet Explorer. Sau rau hauv daim ntawv thiab tso CppWebBrowzer ntu thiab internet tab nyob rau. Nws nyob ntawm sab xis. Ntxiv ib qho yuam sij hloov thiab khawm kom tuaj yeem nkag mus rau qhov chaw nyob. Yog li ntawd, koj yuav tsum tau txais ib lub duab plaub dawb, hauv qhov chaw ntawm cov chaw yuav tso tawm kom pom.

Kauj ruam 2

Sau cov xwm txheej uas qheb los ntawm lub pob: CppWebBrowser1-> Tsav (StringToOleStr (Edit1-> Phau Ntawv));. Ntxiv cov yuam sij uas txhua tus qauv txheem muaj. Piv txwv li, lawv tuaj yeem yog: rau pem hauv ntej, rov qab, nres, rov qab thiab tsev nplooj. Ntaus cov cim rau lawv: CppWebBrowser1-> GoBack (); - rau khawm "rov qab", CppWebBrowser1-> GoForward (); - rau pob "rau pem hauv ntej", CppWebBrowser1-> Nres (); - rau tus yuam sij nres, CppWebBrowser1-> Kho Siab (); - txhawm rau kho nplooj ntawv, CppWebBrowser1-> GoHome (); - - mus rau qhov home page. Hloov cov ntawv kho kom raug nrog ComboBox tivthaiv. Nws yog tsim los khaws cov chaw nyob qhib nplooj ntawv nyuam qhuav.

Kauj ruam 3

Tsim ib lub bar tab siv Pagecontrol. Qhov chaw tivthaiv no rau ntawm daim foos thiab nyem-thov nws, nyem Nplooj Ntawv Tshiab hauv cov zaub mov uas qhib. Txhua cov xovxwm tshiab yuav qhib lub tab tom ntej. Txav mus rau CppWebBrowser tivthaiv rau thawj kab. Nws yog txaus kom luag nws hla Lub Hom Phiaj Treeview.

Kauj ruam 4

Ua ib qho vaj huam sib luag kom haum rau txhua tus tswj khawm rau nplooj ntawv ua haujlwm. Hloov CoolBar rau hauv daim ntawv nrog tag nrho nws cov ntsiab, sau cov cai tsim lub tab nyob rau hauv nyias muaj nyias haujlwm. Hauv cov ntawv header, xaiv chav kawm TForm1, tom qab ntawv luam tawm thiab khij qhov tsis muaj nuj nqi _fastcall make_tab (); thiab muab theej rau onKeyDown. Nws yuav pab ua kev tabs yooj yim dua ua haujlwm nrog. Tua tawm lub browser tsim thiab sim nws rau kev ua haujlwm.

Pom zoo: