Click here to Skip to main content
15,886,362 members
Articles / Desktop Programming / MFC

How to enable context sensitive help for individual controls on a FormView

Rate me:
Please Sign up or sign in to vote.
4.76/5 (10 votes)
25 Oct 2002CPOL2 min read 122.5K   962   29  
Context sensitive help does not distinguish individual controls on a FormView. This sorts that problem
@echo off
REM -- First make map file from Microsoft Visual C++ generated resource.h
echo // MAKEHELP.BAT generated Help Map file.  Used by CONTEXTHELP.HPJ. >"hlp\ContextHelp.hm"
echo. >>"hlp\ContextHelp.hm"
echo // Commands (ID_* and IDM_*) >>"hlp\ContextHelp.hm"
makehm ID_,HID_,0x10000 IDM_,HIDM_,0x10000 resource.h >>"hlp\ContextHelp.hm"
echo. >>"hlp\ContextHelp.hm"
echo // Prompts (IDP_*) >>"hlp\ContextHelp.hm"
makehm IDP_,HIDP_,0x30000 resource.h >>"hlp\ContextHelp.hm"
echo. >>"hlp\ContextHelp.hm"
echo // Resources (IDR_*) >>"hlp\ContextHelp.hm"
makehm IDR_,HIDR_,0x20000 resource.h >>"hlp\ContextHelp.hm"
echo. >>"hlp\ContextHelp.hm"
echo // Dialogs (IDD_*) >>"hlp\ContextHelp.hm"
makehm IDD_,HIDD_,0x20000 resource.h >>"hlp\ContextHelp.hm"
echo. >>"hlp\ContextHelp.hm"
echo // Frame Controls (IDW_*) >>"hlp\ContextHelp.hm"
makehm IDW_,HIDW_,0x50000 resource.h >>"hlp\ContextHelp.hm"
echo. >>"hlp\ContextHelp.hm"
echo // Commands (IDC_*) >>"hlp\ContextHelp.hm"
makehm IDC_,HIDC_,0x60000 resource.h >>"hlp\ContextHelp.hm"
REM -- Make help for Project CONTEXTHELP


echo Building Win32 Help files
start /wait hcw /C /E /M "hlp\ContextHelp.hpj"
if errorlevel 1 goto :Error
if not exist "hlp\ContextHelp.hlp" goto :Error
if not exist "hlp\ContextHelp.cnt" goto :Error
echo.
if exist Debug\nul copy "hlp\ContextHelp.hlp" Debug
if exist Debug\nul copy "hlp\ContextHelp.cnt" Debug
if exist Release\nul copy "hlp\ContextHelp.hlp" Release
if exist Release\nul copy "hlp\ContextHelp.cnt" Release
echo.
goto :done

:Error
echo hlp\ContextHelp.hpj(1) : error: Problem encountered creating help file

:done
echo.

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior) Sirius Analytical Instruments
United Kingdom United Kingdom
A research and development programmer working for a pharmaceutical instrument company for the past 17 years.

I am one of those lucky people who enjoys his work and spends more time than he should either doing work or reseaching new stuff. I can also be found on playing DDO on the Cannith server (Send a tell to "Maetrim" who is my current main)

I am also a keep fit fanatic, doing cross country running and am seriously into [url]http://www.ryushinkan.co.uk/[/url] Karate at this time of my life, training from 4-6 times a week and recently achieved my 1st Dan after 6 years.

Comments and Discussions