大家好:请大家帮忙搞定个问题。先谢谢了。
VC的帮助关联上chm,我是用的HtmlHelp,如果这样做的话是可以实现的。但是我想做的详细一点。问题:有多个子窗口,当按下F1帮助的时候,检查当前活动的子窗口,并且弹出chm中对应的htm。比如说有A和B两个窗口,chm文件中A和B两个htm组成。按下F1的时候如果检查当前窗口是A就弹出chm中的A.htm。
VC的帮助关联上chm,我是用的HtmlHelp,如果这样做的话是可以实现的。但是我想做的详细一点。问题:有多个子窗口,当按下F1帮助的时候,检查当前活动的子窗口,并且弹出chm中对应的htm。比如说有A和B两个窗口,chm文件中A和B两个htm组成。按下F1的时候如果检查当前窗口是A就弹出chm中的A.htm。
DWORD_PTR dwData,
UINT nCmd = 0x000F
);
Parameters
dwData
Specifies additional data. The value used depends on the value of the nCmd parameter.nCmd
Specifies the type of help requested. For a list of possible values and how they affect the dwData parameter, see the uCommand parameter described in the HTMLHelp API Reference in the Platform SDK
{
// TODO: Add your specialized code here and/or call the base class
if (nCmd == 1)
return;CDialog::WinHelp(dwData, nCmd);
}
不同窗口函数对应不同的帮助文档不行么?