CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 8 of 8

Threaded View

  1. #1
    Join Date
    Apr 2005

    htmlhelp API pressing the cancel button

    Hi Forum

    I have the following code ...

            hHtmlHelp = HtmlHelp( hWndHandle,
        if (hHtmlHelp==NULL) {
            MessageBox(hMainWnd,"Internal Help error"...... etc
    This API displays the Topics found and then when I press the Display after selecting the topic. displays the HTML help for that topic

    If I press Cancel on the "Topic Found" dialog box, then my program enters this if Condition..
    I notice that even If I press CANCEL button, the 'hHtmlHelp' variable remains NULL.

    Question :
    How to detect if the user has pressed the cancel button instead of any other error ..

    Thanks in Advance
    Last edited by softmessager; January 30th, 2012 at 11:53 PM. Reason: Spelling mistakes

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

On-Demand Webinars (sponsored)

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.