Click here to Skip to main content
16,005,473 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Dynamic allocation of 2-d array using 'new' Pin
Nick Parker24-Mar-03 18:20
protectorNick Parker24-Mar-03 18:20 
QuestionHow to find data in database ? Pin
ooosawaddee324-Mar-03 15:21
ooosawaddee324-Mar-03 15:21 
AnswerRe: How to find data in database ? Pin
Anonymous24-Mar-03 15:37
Anonymous24-Mar-03 15:37 
GeneralRe: How to find data in database ? Pin
ooosawaddee324-Mar-03 15:56
ooosawaddee324-Mar-03 15:56 
GeneralRe: How to find data in database ? Pin
Anonymous24-Mar-03 16:14
Anonymous24-Mar-03 16:14 
AnswerRe: How to find data in database ? Pin
Christian Graus24-Mar-03 16:56
protectorChristian Graus24-Mar-03 16:56 
GeneralRe: How to find data in database ? Pin
Nick Parker24-Mar-03 18:24
protectorNick Parker24-Mar-03 18:24 
GeneralHtmlHelp events Pin
trimtrom24-Mar-03 14:54
trimtrom24-Mar-03 14:54 
Hello,
I am trying to implement context-sensitive HtmlHelp in my application using VC++ .Net. I have succeeded in implementing help using the F1 key, as follows:

BOOL CMainFrame::OnHelpInfo(HELPINFO* pHelpInfo)
{
//pHelpInfo gives me the ID
::HtmlHelp(this->GetSafeHwnd(),AfxGetApp()->m_pszHelpFilePath,HH_HELP_CONTEXT,pHelpInfo->iCtrlId);

//return CFrameWnd::OnHelpInfo(pHelpInfo);
return 1;
}

I am now trying to do the same for the help toolbar button that changes the cursor into a questionmark until you click on something.

What bothers me is that I can't find any convenient eventhandler like the one above to give me the ID of the menuitem or control that is being clicked upon. The eventhandler above doesn't seem to work for the toolbar. Any ideas? There must be a way to find the ID.

Help much appreciated.

Trimtrom

GeneralRe: HtmlHelp events Pin
Taka Muraoka24-Mar-03 15:02
Taka Muraoka24-Mar-03 15:02 
GeneralCOM Port data transfer Pin
TeraCoder24-Mar-03 13:09
TeraCoder24-Mar-03 13:09 
GeneralRe: COM Port data transfer Pin
Santanu Lahiri24-Mar-03 20:20
Santanu Lahiri24-Mar-03 20:20 
GeneralMessage Handling in Controls instead of Dialog Pin
brigham_young24-Mar-03 13:00
brigham_young24-Mar-03 13:00 
GeneralRe: Message Handling in Controls instead of Dialog Pin
bryce24-Mar-03 14:03
bryce24-Mar-03 14:03 
GeneralRe: Message Handling in Controls instead of Dialog Pin
Alin Negru24-Mar-03 22:02
Alin Negru24-Mar-03 22:02 
QuestionAdd Custom Controls To A Dialog??? Pin
brigham_young24-Mar-03 12:12
brigham_young24-Mar-03 12:12 
AnswerRe: Add Custom Controls To A Dialog??? Pin
Dave Bryant24-Mar-03 12:17
Dave Bryant24-Mar-03 12:17 
GeneralRe: Add Custom Controls To A Dialog??? Pin
brigham_young24-Mar-03 12:18
brigham_young24-Mar-03 12:18 
GeneralLearning to use an API Pin
trimtrom24-Mar-03 12:09
trimtrom24-Mar-03 12:09 
GeneralRe: Learning to use an API Pin
Dave Bryant24-Mar-03 12:15
Dave Bryant24-Mar-03 12:15 
QuestionWhen do I initialize a CListView? Pin
Jonah Bishop24-Mar-03 11:51
Jonah Bishop24-Mar-03 11:51 
AnswerRe: When do I initialize a CListView? Pin
Ravi Bhavnani24-Mar-03 12:04
professionalRavi Bhavnani24-Mar-03 12:04 
GeneralRe: When do I initialize a CListView? Pin
Jonah Bishop24-Mar-03 15:00
Jonah Bishop24-Mar-03 15:00 
Generalcolor palette Pin
mstacey24-Mar-03 11:43
mstacey24-Mar-03 11:43 
GeneralRe: color palette Pin
_Theo_24-Mar-03 22:25
_Theo_24-Mar-03 22:25 
GeneralString replace Pin
act_x24-Mar-03 11:42
act_x24-Mar-03 11:42 

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.