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