X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9cc56d1fc0b8eec41fbe2b961965e67c598d9406..b955766e883accfd019d7ebd8261afb8098213ef:/interface/wx/help.h?ds=sidebyside diff --git a/interface/wx/help.h b/interface/wx/help.h index c250878f82..ae7ac421fc 100644 --- a/interface/wx/help.h +++ b/interface/wx/help.h @@ -3,7 +3,7 @@ // Purpose: interface of wxHelpController // Author: wxWidgets team // RCS-ID: $Id$ -// Licence: wxWindows license +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// /** @@ -35,21 +35,21 @@ The remaining help controller classes need to be named explicitly by an application that wishes to make use of them. - There are currently the following help controller classes defined: + The following help controller classes are defined: - wxWinHelpController, for controlling Windows Help. - wxCHMHelpController, for controlling MS HTML Help. To use this, you need to - set wxUSE_MS_HTML_HELP to 1 in setup.h and have htmlhelp.h header from - Microsoft's HTML Help kit (you don't need VC++ specific htmlhelp.lib + set wxUSE_MS_HTML_HELP to 1 in setup.h and have the htmlhelp.h header from + Microsoft's HTML Help kit. (You don't need the VC++-specific htmlhelp.lib because wxWidgets loads necessary DLL at runtime and so it works with all - compilers). + compilers.) - wxBestHelpController, for controlling MS HTML Help or, if Microsoft's runtime is not available, wxHtmlHelpController. You need to provide @b both CHM and - HTB versions of the help file. For 32bit Windows only. + HTB versions of the help file. For wxMSW only. - wxExtHelpController, for controlling external browsers under Unix. The default browser is Netscape Navigator. The 'help' sample shows its use. - wxWinceHelpController, for controlling a simple @c .htm help controller for Windows CE applications. - - wxHtmlHelpController, a sophisticated help controller using wxHTML(), in a + - wxHtmlHelpController, a sophisticated help controller using wxHTML, in a similar style to the Microsoft HTML Help viewer and using some of the same files. Although it has an API compatible with other help controllers, it has more advanced features, so it is recommended that you use the specific API @@ -142,9 +142,16 @@ public: const wxPoint& pos); /** - wxHtmlHelpController returns the frame, size and position. - For all other help controllers, this function does nothing and just - returns @NULL. + For wxHtmlHelpController, returns the latest frame size and position + settings and whether a new frame is drawn with each invocation. + For all other help controllers, this function does nothing and just returns @NULL. + + @param size + The most recent frame size. + @param pos + The most recent frame position. + @param newFrameEachTime + @true if a new frame is drawn with each invocation. */ virtual wxFrame* GetFrameParameters(const wxSize* size = NULL, const wxPoint* pos = NULL, @@ -198,10 +205,10 @@ public: wxHtmlHelpController ignores this call. */ - virtual bool LoadFile(const wxString& file = ""); + virtual bool LoadFile(const wxString& file = wxEmptyString); /** - Overridable member called when this application's viewer is quit by the user. + Overrideable member called when this application's viewer is quit by the user. This does not work for all help controllers. */ virtual bool OnQuit(); @@ -213,7 +220,7 @@ public: virtual bool Quit(); /** - For wxHtmlHelpController, the title is set (again with %s indicating the + For wxHtmlHelpController, the title is set (with %s indicating the page title) and also the size and position of the frame if the frame is already open. @a newFrameEachTime is ignored.