void ShowContextHelp(CWnd* pWnd, POINT pt, int iCtrlID)
{
CString s; // Load help text from String Table
if(s.LoadString(iCtrlID))
{
HH_POPUP hPop; // HTML Help popup structure // Initialize structure to NULLs
memset(&hPop, 0, sizeof(hPop)); // Set size of structure
hPop.cbStruct = sizeof(hPop); // Yellow background color
hPop.clrBackground = RGB(255, 255, 208); hPop.clrForeground = -1; // Font color
hPop.rcMargins.left = -1;
hPop.rcMargins.bottom = -1;
hPop.rcMargins.right = -1;
hPop.pt = pt;
hPop.pszText = s; // Message from String Table
hPop.pszFont = NULL; // Font HtmlHelp(pWnd->GetSafeHwnd(),NULL,HH_DISPLAY_TEXT_POPUP,(DWORD)&hPop);
} // End if found a help string for this request
}编译时说,
'HH_POPUP' : undeclared identifier
'HtmlHelp' : undeclared identifier
'HH_DISPLAY_TEXT_POPUP' : undeclared identifier请问需要包含什么,才能解决问题!!!
{
CString s; // Load help text from String Table
if(s.LoadString(iCtrlID))
{
HH_POPUP hPop; // HTML Help popup structure // Initialize structure to NULLs
memset(&hPop, 0, sizeof(hPop)); // Set size of structure
hPop.cbStruct = sizeof(hPop); // Yellow background color
hPop.clrBackground = RGB(255, 255, 208); hPop.clrForeground = -1; // Font color
hPop.rcMargins.left = -1;
hPop.rcMargins.bottom = -1;
hPop.rcMargins.right = -1;
hPop.pt = pt;
hPop.pszText = s; // Message from String Table
hPop.pszFont = NULL; // Font HtmlHelp(pWnd->GetSafeHwnd(),NULL,HH_DISPLAY_TEXT_POPUP,(DWORD)&hPop);
} // End if found a help string for this request
}编译时说,
'HH_POPUP' : undeclared identifier
'HtmlHelp' : undeclared identifier
'HH_DISPLAY_TEXT_POPUP' : undeclared identifier请问需要包含什么,才能解决问题!!!
不过还是要谢大哥!!!