- // Use context number -- a very rough equivalent to block id!
- if (m_helpFile == "") return FALSE;
-
- wxString str = m_helpFile;
- size_t len = str.Length();
- if (!(str[(size_t)(len-1)] == 'p' && str[(size_t)(len-2)] == 'l' && str[(size_t)(len-3)] == 'h' && str[(size_t)(len-4)] == '.'))
- str += ".hlp";
-
- if (wxTheApp->GetTopWindow())
- {
- WinHelp((HWND) wxTheApp->GetTopWindow()->GetHWND(), (const char*) str, HELP_CONTEXT, (DWORD)block);
- return TRUE;
- }
- return FALSE;