Installation of the Microsoft HTML Help SDK
The HTMLHelp SDK is not provided with Visual Studio, at least not version 6. So if you have not installed it separately then you need to, as described in Installing HTML Help. Then look at my Introduction to HTMLHelp article if you need help getting started writing HTML Help files. Then set up the VC environment as described in Including HTML Help Support Files in an Application.
Program Modifications
The following is my version of how to modify a MFC application to use HTMLHelp.
Modifying the Resources
First create string resources to be used as prompts for the menus. Add the following ids with these strings or whatever other strings you choose. The resource editor will probably use the correct “Value” so you should not need to be concerned about that. I don’t know if it matters whether the exact values I show here must be used. Also it is probably not necessary to use all 6, probably only ID_HELP_CONTENTS, ID_HELP_INDEX and ID_HELP_SEARCH are necessary.
ID
Value
Caption
ID_HELP_INDEX
57666
Display the Index of the Help file\nDisplay Index
ID_HELP_FINDER
57667
List Help topics\nHelp Topics
ID_HELP_USING
57668
Display instructions about how to use help\nHelp
ID_HELP
57670
Shows the help file
ID_HELP_SEARCH
57671
Display the Search tab of the Help file\nDisplay Search
ID_HELP_CONTENTS
57672
Display the Table of Contents of the Help file\nDisplay Contents
Next add the following to a menu: ID_HELP_CONTENTS, ID_HELP_INDEX and ID_HELP_SEARCH. It is necessary to add them to a menu first since otherwise they will not be available in the ClassWizard to add handlers for them.
Modifying the Application
In your application’s InitInstance add the following so that the help file path and filename are set automatically. This assumes that your chm file is the same filename as your exe file except with a chm extension instead of the exe extension. It should also be in the same directory. That is the convention MFC uses and the following will just change the extension from hlp to chm. Next this code verifies that the chm file exists.
CString strHelpFile = m_pszHelpFilePath; strHelpFile.MakeLower(); if (strHelpFile.Right(4) == ".hlp") { strHelpFile = strHelpFile.Left(strHelpFile.GetLength()-4) + ".chm"; free((void*)m_pszHelpFilePath); m_pszHelpFilePath = _tcsdup(strHelpFile); } CFileStatus FileStatus; if (!CFile::GetStatus(m_pszHelpFilePath, FileStatus)) { CString Message("Help file not found:\r\n"); AfxMessageBox(Message+m_pszHelpFilePath); return FALSE; // Optional; this can be removed }
Modifying CMainFrame
Use ClassWizard to add handlers for ID_HELP_CONTENTS, ID_HELP_INDEX and ID_HELP_SEARCH then modify them as follows. I don’t know where I got the following code for OnHelpSearch from and I am not sure what it does. I should get answers to both those questions.
void CMainFrame::OnHelpContents() { HWND hWnd = HtmlHelp(0, AfxGetApp()->m_pszHelpFilePath, HH_DISPLAY_TOC, NULL); } void CMainFrame::OnHelpIndex() { HWND hWnd = HtmlHelp(0, AfxGetApp()->m_pszHelpFilePath, HH_DISPLAY_INDEX, NULL); } void CMainFrame::OnHelpSearch() { HH_FTS_QUERY q; memset(&q, 0, sizeof(HH_FTS_QUERY)); q.cbStruct = sizeof(HH_FTS_QUERY); q.fUniCodeStrings = FALSE; q.pszSearchQuery = ""; q.iProximity = HH_FTS_DEFAULT_PROXIMITY; q.fStemmedSearch = FALSE; q.fTitleOnly = FALSE; q.fExecute = TRUE; q.pszWindow = NULL; HWND hWnd = HtmlHelp(0, AfxGetApp()->m_pszHelpFilePath, HH_DISPLAY_SEARCH, (DWORD)&q); }
Then use ClassWizard again to override WinHelp, which is a virtual function, and then modify it as follows.
void CMainFrame::WinHelp(DWORD dwData, UINT nCmd) { HWND hWnd = HtmlHelp(m_hWnd, AfxGetApp()->m_pszHelpFilePath, nCmd, dwData); }
Custom Build Step
It is very convenient to have a custom build step for your chm file so that if you change it then it gets copied from wherever it is put by the HTMLHelp compiler to your project’s output directory (Debug or Release or whatever) automatically. By using a custom build step, this copy is done whenever you do a build of your VC project but only if the chm file has been changed. To create a custom build step for the help file, first add the file to the project. Then create the custom build step by using the “Custom Build Step” of the project settings. Select the chm file in the tree on the left then enter the following:
- Description:
Copying $(InputPath)
Commands:
copy $(InputPath) $(OutDir)\$(InputName).chm
Outputs:
$(OutDir)\$(InputName).chm
g other
http://j.mp/3drY6lE
forum.serioussam.su
Gregory Rochlin
CBD for sale
can i buy viagra over the counter at cvs
John Deere Technical Manuals
his response
is cbd oil legal for sale and purchase in kansas?
cbd oil for dogs mg
John Deere Technical Manuals
colorado cbd oil dogs
can cbd oil be given to dogs taking rimadyl
cbd benefits for psuedo pseudotumor cerebri
cbd capsules stoked
Check Out Your URL
find out here
Palmira Cambridge
Eric Edey
online
Learn More
over at this website
sneak a peek at this website
read the article
resource
skyscanner.com
안전사이트
안전카지노
talking to
Kenny Grippe
receptra cbd oil for dogs
win money play games
cbd oil for back pain
Luetta Astor
Neomi Dellapenta
cbd oil ibs
canadian pharmacy
Dana Gerrish
Virginia pool table movers
alberta car towing
roadside assistance
visit this site
top 9 digital marketing modules
important site
interior renovation
White glove delivery
porno
Bari Life Multivitamin
נערות ליווי
plumbers in my area go to this site
Playset assembly service
VitalFlow Updated
마사지구인구직
foundation inspection los angeles ca
emergency plumber near me Visit This Link
안전해외사이트
Radio Raceline BMX en venta
Gout In Heel Treatment
Echo Zettel
Seth Trabert
DC white glove delivery
Herbs For Arthritis In Dogs
안전한 놀이터
스포츠 북
슬롯 사이트
Jaymie Leoni
Pretty Gaming
Jim Pest Control
Chong Ip
websites
Art Seaberry
free horror
דירות דיסקרטיות במרכז
Raymond Rodan
Heavy Hitters Feminized Cannabis Seed Mixpack
What is Skincell Pro
Seth YouTube
Best Pain Relief For Dogs
Best Nsaid For Dogs
plus size sheer lingerie
ProstaStream supplement
Best Roofers in Des Moines
these details australnews.com
Marylouise Hasegawa
Kamala Szoka
Solar St Pete Steven
JBO
water delivery dubai
Pain Cream With Hemp
Darcie Breard
Homepage electrician san diego ca
Synapse XT USA
Truman Hamon
Breast Lift Tape Diy
gaming news
plumbers near me wikipedia reference
Conrad Mearse
cialis
Royce Petrullo
Bryon Smarra
usine sky
Bio Melt Pro USA
Shara Tredwell
Google Pixel3
read here 336news.com
you can look here electrical contractor
Derrick Ochsenbein
24 hour plumber home
official site legal-news-central.com
Codi Broaddus
towing vancouver
a cool way to improve
her comment is here allnewsharings.com
Pumpkin Spice James Anderson
Amazon Shopping
Skincell Pro Ingredients side effects
navigate to this site breaching news
click this link here now breachingnews.com
visit this page Backwards News Report
splendid spoon affiliate program
youtube transcription
First impressions of Yumble
How does Reversirol work?
gaming news
their website baria-vungtaunews.com
address bizmarketnews.com
New york furniture assembly
you could try these out Aanewshop.com
can you eat purple carrots raw
try this site fasotimes.com
Check Out Your URL amelia village news paper
click resources BrawlerNews.com
Visit Website Athanews.com
visit homepage ArvoNews.com
go Achounews.com
check this link right here now Acblivenews.com
prepared meal delivery service
click over here bmsportnews.com
Office movers
useful content Bravenewspaper.com
navigate to this site blog1news.com
see this here boudnews.com
redirected here ArvoNews.com
go to this website Aajnewsok.com
Mahi Mike
next BizMarketNews.com
i loved this BMSportNews.com
Jobs offered
visit the site 4News4You.com
What Helps Gout
918kiss
FB88.vin
try this site FreeTownDailyNews.com
the original source AcademyWebNews.com
important site 0751SGnews.com
he said icetimesmagazine.com
see American Valve News
our website all news nepal
over at this website AIO News9
Full Article BizMarketNews.com
blog here brainwavelive.com
Sextreffen Per Whatsapp
Check Out Your URL 51kannews.com
roof joint repair
find this Botapracorrernews.com
discover here Allgonews.com
navigate here Boudnews.com
Shy Bladder
Brandie Boemer
view it now AngolaPostNews.com
click site Botapracorrer News
learn this here now AJD News
Website allgonews.com
my link CallCentreNews.com
pop over to this website IceTimesMagazine.com
Homepage BackStretchNews.com
More Bonuses legalorium.com
browse around here BreachingNews.com
check here Suburbanews.com
content RadScienceTimes.com
have a peek at this site BigestNews.com
useful site Phitmesng.com
how to start your own bank uk
find out here AdnNews.com
helpful hints Brainwavelive.com
continue reading this Aionews.com
this page BitarkaNews.com
have a peek at this site AustralNews.com
Kush Feminized Cannabis Seed Variety Pack
wikipedia reference ScaldingCoffee.com
check it out Bergamowebnews.com
go to the website bestnewsup.com
click this link here now Pro-Tec-Insider.com
Earn Real Money Online
check it out LegalOrium.com
Devon Morlock
see it here 247realnews.com
visit this site 336News.com
wikipedia reference AllNewSharings.com
TV wall installers
Mirror installers
additional resources B2Dnews.com
pop over to this web-site bitarkanews.com
you can try this out AJD News
Marvis Kozloff
more info here 891news.com
baby size dividers
trust online pharmacy
Mckinley Rissell
why not try this out Breachingnews.com
hop over to this site a7 news
Rory Spratlen
you can look here 0913news.com
Ftm Bra
bitcoin investment strategy 2021
Treadmill movers
Signs Of Hip Dysplasia In Dogs
top rated online canadian pharmacies
emergency pool service near me
Homepage call centre news
check it out Blog1News.com
check this 365 planet news
pop over here
Uber Attorney
young porn sites
check out this site 336News.com
видео новостьи
Your Domain Name Legal-News-Central.com
schlüsseldienst Neuss
canada pharmacies prices
Virgina Rioux
Pingback: Job reviews
lowes toilet repair parts
우리카지노
amex delta
Best Treatment For Golf Elbow
Mahi Mike
DC apartment movers
DC braiders
Darcy Schier
video on how do interactive projectors work
DC hookah lounge
Check out
포항 출장안마
Individual Health Insurance
Magnesium And Cortisol
where can i get viagra without a doctor
Austin Uber Accident Lawyer
buy youtube views
buy instagram likes
Buy Instagram Followers
free computer science books
W88yes
home ac repair shops near me
what to tell your doctor to get viagra
Best Fashion Tape For Wedding Dress
VN88.com
Delbert Manhardt
김천 출장마사지
plumber looking for work
xeberler
Cosplayo
Health Insurance Online
check here
출장마사지
cbd oil and sex
출장마사지
꽁머
꽁머니
fuck google
โกงชักดาบ
Danae Hallada
sisteme de copiat
cialis samples request form
24 emergency plumber
continue watching
DC events
situs poker online
nick hall plumber
cutting cialis in half
Wimpernserum Dm
buy kamagra gel online australia
北京賽車
local plumbers Gawler
plumbing services Gawler
꽁머니
출장안마
출장
my site commercial plumber brisbane
Binder For Your Chest
comprare cialis a buon mercato
a fantastic read local plumbers guildford
출장
FangWallet
bola88 link alternatif 1
alcohol and prednisone
Raina Chute
구찌출장안마
Pul Meg Mens Du Synger Julesanger
judi online resmi
cheap tadalafil
his explanation aquarium plant ebooks
postmates code november
Carlos Vielma
Baby List
this website aquarium fish ebooks
http://cse.google.hr/url?q=http://fidetest.com/
Individual Health Insurance
how much does viagra cost
IDGod
Adult Diaper Chat
Trademark Lawyer
เว็บพนันออนไลน์
viagra oral jelly 100mg
local plumber near me click here for more info
AC Milan
Shivering Isles Iso
when was viagra created
Immigration Law Miami
social media
Mösenbilder
laobet casino
เว็บพนันที่ดีที่สุด
How To Make Dmso Cream
sildenafil do you stay erect after you come
Anjelica Caudillo
Body Kun Body Chan
Blood Sugar Control Diet
click here now commercial plumber Brisbane
성남 출장
find more info 24 Hour plumbers Melton
pendik escort bayan
sildenafil sherdog
House Cleaner
dividata
klimaanlage
holzoptik fliesen
solaranlagen
우리카지노
how much does sildenafil 25 mg cost
best forex robot
check my profile
Bariatric Fusion Chewable Vitamins
best canvas
Escort Service
Treadmill installers
Hayden Brandwein
마사지구인구직
discount pharmacies sildenafil
cara main roulette
Nigeria Property Online
Twitter alternative
plumbing services near me browse around this site
kancelaria prawna
canvas prints
Lesa Buchmiller
Uber Accident Attorney
Pingback: mice
เว็บดูบอล
Cosplay
alternative usa
Antonio Mcgoey
Ai Forrester
พนันออนไลน์ เว็บไหนดี
judi online terbaik
Pingback: mouse
Hazel
black pepper
Divorce Lawyer Near Me
제주출장안마
익명
how to make money without a job reddit
stream filme
제주출장
Amira
competitor search
샌즈카지노
우리카지노
Pinterest Cosless
cheap divorce attorney
Recommended Reading
website hosting vergelijken
Zuri
Okinawa Flat Belly Tonic powder
제주 출장안마
แทงบอล
Cam4 Latina
제주 출장안마
3 movierulz
apps free download
Gun shirt
Keneth Fritzgerald
chat
GMB
Treadmill assembly service
en webcam live
광주출장
대전출장마사지
Wayne Romanello
https://www.sfweekly.com/sponsored/cbd-lube/
auto seat covers for dogs
Cher Tatar
la diosa del clima televisa mexicali
hema kortingscode foto
Dena Dibella
Bryan Safarik
Autoankauf
kitchen accessories click here
electronics
Huntsville Divorce Law Firm
נערת ליווי תל אביב
pgslot
출장마사지
샌즈카지노
Garrett Hockema
เว็บพนัน สล็อต
check this out
Divorce Lawyer Nearby
live gratis
megadede apk oficial
Felipa Milbrandt
Treadmill assembly service
Keturah Muth
Techniques De Bondage
Nerve shield plus Ingredients
토토
출장
수원출장안마
Gaylene Shanholtzer
site link
Divorce Attorney Near me
swing set installation
Damien Hayward
https://www.ubgclothing.com/
stardew valley best way to make money reddit
Phil Faiella
skrive på tinder
poker online
Fran Legros
Pingback: 34cr4rxq3crq34rq3r4
where to buy nootropics,
online clothing store
출장안마
Lakeshia Quintanar
DMCA Ignored Hosting
bitcoin traden
Guerin Green
Best CBD Oil Companies
Licking Lips And Eating Grass
Gala Bednarczyk
Best CBD Lube
rapid cnc machining
taruhan judi online
sensation in left elbow
Moriah
creatine powder
HVAC Repair In My Area
teapa lucrare-licenta eu creativ trd srl neata adrian valentin
www.laweekly.com/best-cbd-gummies/
baby essentials list
ace rhino pill
kortingscodes
Stephane Zakrzewski
stardew valley money cheat
business projectors
Erich Bourdeaux
Furniture installation service
best pure cbd oil
creativ trd srl plagiat frauda
medicine product
teapa creativ trd srl
Maryland furniture assembly
ดูหนัง
milf fuck girls
Pingback: Free China chat models
Naoma Gibb
HVAC Repair
frauda lucrare-licenta.eu
Nha Cai 12Bet
check my profile
AC Repair
Hult Private
Lajuana Doberstein
AC Repair Near Me
Pingback: afectados clinicas dh
BACKPACK
the habesha amharic
tinder site
Patricia Santone
betting online
view video
furniture assembly service
movidy
Bruno Kasowski
Penis Pill That Works
turinabol for sale online
Pingback: RC Modelle
furniture assembly companies
샌즈카지노
Pingback: c34r54wxw4r34c3
대구출장마사지
먹튀검증사이트
Izola Yoshioka
Jasper Ziccardi
Tom Romiro
Al Humpal
Martin Gruesbeck
watch Full Report
Run 3
Rusty Bernardo
cradlepoint directional antenna
Mario game
Brandon Foersterling
great video
Pingback: facebook singapore
Santo Manrriquez
linked here
elliptical assembly service
Craig Kaszynski
Roscoe Wygand
Motorschaden ankauf
Jamel Halstead
Melynda Davi
TBussculmomi
HVAC Repair
먹튀검증
우리카지노
Swing set movers
Noah Esquilin
Heating Repair Services in my area
hop over to this video
video projectors
Chasity Staine
EseipsHip
Autoankauf
Forangavawn
Autoankauf Hagen
Autoankauf
Dean Gropper
Annmarie Ahlstedt
Pingback: how to win on sportsbook
Intimes Niedersachsen
river stream white noise
Vancouver Cannabis Edibles
Same Day Weed Delivery Burnaby
Jason Nastasi
Colton Veltri
Pingback: KIDS CARD GAMES
먹튀사이트
WacanteeCic
ITefAbela
OWoodayDon
Pingback: twitter to mp4
OFeacuanny
lions breath carts mimosa
Signs Of Gout In Knee
nghệ nhân ấm tử sa trung quốc
먹튀사이트
Aracely Kubota
Quinton Gottlieb
Pingback: poker
Neva Huhtala
Virgil Actis
The Language of Desire by Felicity Keith
sa
출장안마
FElarseple
샌즈카지노
토토사이트
Loura Hof
HBeeharbele
pożyczki pod zastaw mieszkania
Ambrose Guilliam
fonder
먹튀검증사이트
approved canadian online pharmacies
ffp3 respirators
printed tape
in ground basketball hoop installers
Anne arundel county movers
AC Repair Near Me
hook and loop tape
Pingback: cabo san lucas sport fishing
American university movers
centreville moving company
tutoring websites
buku mimpi
Pingback: cmd368 sportsbook malaysia
visit profile
Air Conditioning Repair
immobilienberater düsseldorf
visit profile
마사지구인
출장안마
we pay cash for scrap cars
laundry room tips
check this out
Tohatsu outboards
cash advance
online
cursus daytraden
Findoms
메리트카지노
Federico Renigar
Pingback: permainan slot
https://www.yamatocosmos.com
svg cuts
Pingback: Same Day Courier service
Dwana Rogge
uteagreenep
우리카지노
eLopblaro
Daniel Walberg
메이저사이트
Ahmad Paullus
먹튀검증업체
Florene Amoe
webshop zeb korting
video creation software freeware
AC Repair In My Area
mexican pharmacies online
Sanford Finkel
DEBITCARD Services
Pingback: portable solar station
CREDITCARD
Portion Control Plates For Bariatric Patients
reddit