Print Page | Close Window

Context Sensitive help(.chm) in MFC

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: General Discussion
Forum Description: Topics Related to Visual C++ MFC Development in General
URL: http://forum.codejock.com/forum_posts.asp?TID=508
Printed Date: 31 January 2025 at 7:01am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Context Sensitive help(.chm) in MFC
Posted By: AnnJS
Subject: Context Sensitive help(.chm) in MFC
Date Posted: 10 March 2004 at 12:45am

Hello,

I have a Context sensitive buton on the toolbar. I ahev an application with multiple Dialogues. Presently, my help(Context Sensitive popup help) is getting activated only when I press F1. I want the same thing to happen when I click on the help toolbutton and anywhere on my application.How can I do this?

Additional info: I have used Htmlhelp workshop1.3 from microsoft for developing the help projetc. I have popup.h( which maps the control id to the help id) and popup.txt (which has the text to be displayed when the particular control is clicked).

I need detailed help coz Ive tried almost everything, but nothing worked.

Thanks,

Ann

 




Replies:
Posted By: Oleg
Date Posted: 10 March 2004 at 1:35pm
Don't you see HelpContext sample?

-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: AnnJS
Date Posted: 11 March 2004 at 10:05pm

I have seen many samples for Context sensitive help, but in all the help button(the ?) is on the title bar. If that si the case, the OnHelpInfo() function hets triggered. But my case is different. I have the help on a toolbar in the mainframe. This toolabr will be visible for during all the runtime of the application.I have to generate an event that gets activated whenever the user clicks this and anywhere else on his project.

 

Thanks,

 



Posted By: AnnJS
Date Posted: 12 March 2004 at 9:32am

I am mapping my id's as static DWORD myarray[] = {
IDC_BUTTON_EDIT, 1,
IDC_CUSTOM, 2,
IDC_STATIC,3,
0,0
};

HH_TP_HELP_WM_HELP/HH_TP_HELP_CONTEXT_MENU: No help id's matches control id #0 is the Erro message generated by the help author.

Help is displayed for IDC_BUTTON_EDIT and IDC_CUSTOM. But not for the static field. How can I display help for a static field?

I am writing the API in OnContextMenu() Function

 

Thakns,

 



Posted By: Boogh
Date Posted: 04 January 2005 at 11:11pm

Hi,

I have seen the HelpContext MDI sample and have not found it helpful. My problem is as follows:

I have  a docking frame MDI application built using latest ToolKitPro. In my different panes I have CTreeCtrls derived controls and want to be able to capture WM_CONTEXTMENU message in my own derived classes.

It appears that almost all of the messages I have tried including WM_RBUTTONDOWN gets routed appropriately, but this is not true for WM_CONTEXTMENU. Strangely enough, the member function capturing WM_CONTEXTMENU, gets called when I double click right mouse button- this of course happen when I do not capture WM_RBUTTONDOWN.

FYI, I have not modified the base code created by the wizard, and I do have context sesitive help on. Also, I have seen the message handling routines in ActivePane, and am not using it- the example is for SDI and I thing I would need to modify the child frame. Finally, I am not using the template CDockPaneWnd because when I do that scrolbars on CEdit controls do not work properly, so instead I am deriving my own classes from standard controls.

I would appreciate your input on this.

If I am missing something obvious I apologize, I have started with this for only 2 days. Please treat me as a newbie. :)

Thanks.




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net