Click here to Skip to main content
16,006,348 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Unicode Programming Pin
Diddy1-Jun-04 5:31
Diddy1-Jun-04 5:31 
GeneralPrinting Bitmaps Pin
Sergio Batarce30-May-04 5:56
Sergio Batarce30-May-04 5:56 
GeneralRe: Printing Bitmaps Pin
Roger Allen1-Jun-04 5:12
Roger Allen1-Jun-04 5:12 
GeneralRe: Printing Bitmaps Pin
Sergio Batarce1-Jun-04 7:23
Sergio Batarce1-Jun-04 7:23 
GeneralCreating Excel File -- Autofit cells Pin
shultas30-May-04 4:04
shultas30-May-04 4:04 
GeneralRe: Creating Excel File -- Autofit cells Pin
f6430-May-04 8:19
f6430-May-04 8:19 
QuestionHTMLHelp: How to start with? Pin
JHAKAS30-May-04 3:24
JHAKAS30-May-04 3:24 
AnswerRe: HTMLHelp: How to start with? Pin
Ravi Bhavnani30-May-04 7:52
professionalRavi Bhavnani30-May-04 7:52 
Help topics are usually linked to different elements (dialogs, views) of your app. Here's what I do (which is slightly different from MS' process):

  • For every dialog (eg: CMyDialog), define a unique constant (eg: Help_MyDialog). Keep these constants in the file MyAppHelp.h. Include this file as a map in your HtmlHelp project. Ids in the file will map to your .chm's topic ids.

  • Add a "Help" button to your dialog. It's handler should execute this:
    HWND hWndHelp = HtmlHelp (NULL, strHelpFile, HH_HELP_CONTEXT, Help_MyDialog); where strHelpFile is the full path to your app's .chm file.

  • Add a handler for the WM_HELPINFO message. This message is sent whent the user clicks the F1 key. In its handler, just call your Help button handler.

    /ravi

    My new year's resolution: 2048 x 1536
    Home | Articles | Freeware | Music
    ravib@ravib.com

  • Generalresize Pin
    Anonymous30-May-04 2:49
    Anonymous30-May-04 2:49 
    GeneralGDI Gurus, Ellipses Pin
    Abin30-May-04 2:12
    Abin30-May-04 2:12 
    GeneralRe: GDI Gurus, Ellipses Pin
    Dominik Reichl30-May-04 4:55
    Dominik Reichl30-May-04 4:55 
    GeneralRe: GDI Gurus, Ellipses Pin
    f6430-May-04 8:40
    f6430-May-04 8:40 
    GeneralType casting problem Pin
    RickardIsraelsson30-May-04 2:11
    RickardIsraelsson30-May-04 2:11 
    GeneralRe: Type casting problem Pin
    PJ Arends30-May-04 4:28
    professionalPJ Arends30-May-04 4:28 
    GeneralCreating simple text editor using CView as base Pin
    haritadala29-May-04 23:05
    haritadala29-May-04 23:05 
    GeneralRe: Creating simple text editor using CView as base Pin
    Pete Goodsall30-May-04 2:23
    Pete Goodsall30-May-04 2:23 
    GeneralRe: Creating simple text editor using CView as base Pin
    haritadala30-May-04 3:35
    haritadala30-May-04 3:35 
    GeneralSome Questions about CHtmlView Pin
    HIai29-May-04 18:21
    HIai29-May-04 18:21 
    GeneralMFC Container Application Pin
    vishalmore29-May-04 17:58
    vishalmore29-May-04 17:58 
    GeneralHelp needed for CSocket Pin
    sumon200229-May-04 17:43
    sumon200229-May-04 17:43 
    GeneralInitilize the socket Pin
    laia30-May-04 8:22
    laia30-May-04 8:22 
    Questioncheck day of week? Pin
    closecall29-May-04 16:25
    closecall29-May-04 16:25 
    AnswerRe: check day of week? Pin
    PJ Arends30-May-04 5:18
    professionalPJ Arends30-May-04 5:18 
    GeneralScrollbar Control event handling Pin
    ragpub29-May-04 16:21
    ragpub29-May-04 16:21 
    GeneralRe: Scrollbar Control event handling Pin
    PJ Arends30-May-04 4:51
    professionalPJ Arends30-May-04 4:51 

    General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

    Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.